Un Stack ou une Pile est une structure de données fondée sur le principe "Dernier arrivé, premier sorti" (LIFO pour "Last In, First Out").
Illustration de l'utilisation d'une pile:
Label | Tags | Date |
---|---|---|
20. Valid Parentheses | String , Stack |
25-03-2024 |
225. Implement Stack using Queues | Stack , Design , Queue |
15-03-2024 |
234. Palindrome Linked List | Linked List , Two Pointers , Stack , Recursion |
22-03-2024 |
1598. Crawler Log Folder | Array , String , Stack |
10-07-2024 |
Label | Tags | Date |
---|---|---|
143. Reorder List | Linked List , Two Pointers , Stack , Recursion |
23-03-2024 |
155. Min Stack | Stack , Design |
11-03-2024 |
735. Asteroid Collision | Array , Stack , Simulation |
18-04-2024 |
1190. Reverse Substrings Between Each Pair of Parentheses | String , Stack |
11-07-2024 |
1653. Minimum Deletions to Make String Balanced | String , Dynamic Programming , Stack |
30-07-2024 |
2390. Removing Stars From a String | String , Stack , Simulation |
15-03-2024 |
2487. Remove Nodes From Linked List | Linked List , Stack , Recursion , Monotonic Stack |
06-05-2024 |
2816. Double a Number Represented as a Linked List | Linked List , Math , Stack |
04-07-2024 |
Label | Tags | Date |
---|---|---|
32. Longest Valid Parentheses | String , Dynamic Programming , Stack |
27-04-2024 |
42. Trapping Rain Water | Array , Two Pointers , Dynamic Programming , Stack , Monotonic Stack |
20-05-2024 |
726. Number of Atoms | Hash Table , String , Stack , Sorting |
14-07-2024 |
2751. Robot Collisions | Array , Stack , Sorting , Simulation |
13-07-2024 |