๐๐ผ๐บ๐ฝ๐ฟ๐ฒ๐ต๐ฒ๐ป๐๐ถ๐๐ฒ ๐๐๐ถ๐ฑ๐ฒ ๐๐ผ ๐ฆ๐๐ฎ๐ฐ๐ธ ๐๐ฎ๐๐ฎ ๐ฆ๐๐ฟ๐๐ฐ๐๐๐ฟ๐ฒ: ๐๐บ๐ฝ๐น๐ฒ๐บ๐ฒ๐ป๐๐ฎ๐๐ถ๐ผ๐ป, ๐ข๐ฝ๐ฒ๐ฟ๐ฎ๐๐ถ๐ผ๐ป๐, ๐ฎ๐ป๐ฑ ๐ฃ๐ฟ๐ผ๐ฏ๐น๐ฒ๐บ-๐ฆ๐ผ๐น๐๐ถ๐ป๐ด
๐ญ. ๐ฆ๐๐ฎ๐ฐ๐ธ ๐๐ฎ๐๐ถ๐ฐ๐
โข Implementing a Stack Using Arrays
โข Implementing a Stack Using Linked Lists
โข Implementing a Stack Using Two Queues
โข Implementing a Stack Using a Single Queue
โข Stack Operations (Push, Pop, Peek)
โข Implementing a Min Stack (Get Minimum in O(1) Time)
โข Implementing a Max Stack (Get Maximum in O(1) Time)
โข Implementing a Stack Using Two Stacks
โข Implementing a Stack Using Recursion
โข Stack Implementation Using Dynamic Arrays
๐ฎ. ๐๐ป๐ณ๐ถ๐ , ๐ฃ๐ฟ๐ฒ๐ณ๐ถ๐ , ๐ฎ๐ป๐ฑ ๐ฃ๐ผ๐๐๐ณ๐ถ๐ ๐๐ ๐ฝ๐ฟ๐ฒ๐๐๐ถ๐ผ๐ป๐
โข Converting Infix to Postfix
โข Converting Infix to Prefix
โข Converting Postfix to Infix
โข Converting Prefix to Infix
โข Evaluating a Postfix Expression
โข Evaluating a Prefix Expression
โข Validating an Infix Expression
โข Parenthesis Matching (Balanced Parentheses)
โข Implementing the Shunting Yard Algorithm for Expression Parsing
โข Converting Infix to Postfix with Associativity and Precedence Handling
๐ฏ. ๐๐ฑ๐๐ฎ๐ป๐ฐ๐ฒ๐ฑ ๐ฆ๐๐ฎ๐ฐ๐ธ ๐ข๐ฝ๐ฒ๐ฟ๐ฎ๐๐ถ๐ผ๐ป๐
โข Design a Stack that Supports GetMin, GetMax, and GetMedian
โข Implementing a Two-Stack Queue
โข Design a Stack with Increment Operation
โข Implementing a Stack Using Deque
โข Implementing Special Stack Operations (Double Push, Double Pop)
โข Building a Stack from Scratch Without Using Built-In Data Structures
โข Implement a Stack with Dynamic Resizing
โข Implement a Stack That Supports Middle Element Access
โข Implement Stack Sorting Using Recursion
โข Implement a Custom Stack with Customized Push/Pop Rules
๐ฐ. ๐ฆ๐๐ฎ๐ฐ๐ธ-๐๐ฎ๐๐ฒ๐ฑ ๐ฃ๐ฟ๐ผ๐ฏ๐น๐ฒ๐บ-๐ฆ๐ผ๐น๐๐ถ๐ป๐ด
โข Next Greater Element to the Right
โข Next Greater Element to the Left
โข Next Smaller Element to the Right
โข Next Smaller Element to the Left
โข Stock Span Problem
โข Largest Rectangle in Histogram
โข Trapping Rain Water Problem
โข Simplify Directory Path (Unix Style Path Simplification)
โข Evaluate Reverse Polish Notation
โข Validating Stack Sequences
๐ฑ. ๐ฆ๐๐ฎ๐ฐ๐ธ ๐ฎ๐ป๐ฑ ๐ฅ๐ฒ๐ฐ๐๐ฟ๐๐ถ๐ผ๐ป
โข Reverse a Stack Using Recursion
โข Sort a Stack Using Recursion
โข Insert an Element at the Bottom of a Stack Using Recursion
โข Finding Maximum Depth of Nested Parentheses
โข Decode a String with Nested Patterns (e.g., "3[a2[c]]" โ "accaccacc")
โข Removing K Digits to Get the Smallest Number
โข Checking Redundant Parentheses in an Expression
โข Flattening Nested Lists (Nested List Weight Sum)
โข Recursive Depth Calculation Using Stack
โข Implement an Algorithm for the Nearest Smaller Values (Monotonic Stack)
๐ฒ. ๐ฆ๐๐ฎ๐ฐ๐ธ ๐ฉ๐ฎ๐ฟ๐ถ๐ฎ๐๐ถ๐ผ๐ป๐ ๐ฎ๐ป๐ฑ ๐จ๐๐ฒ ๐๐ฎ๐๐ฒ๐
โข Implement a Circular Stack
โข Implement a Bounded Stack with Capacity Limits
โข Design a Stack That Can Support Multiple Data Types
โข Implement a Thread-Safe Stack (Using Synchronization Primitives)
โข Using a Stack to Implement Undo/Redo Operations
โข Browser Back/Forward Navigation Using Two Stacks
โข Stack-Based String Reversal
โข Stack-Based Arithmetic Expression Evaluation (Supporting Multiple Operators)
โข Implement a Stack with Maximum Stack Size for Efficient Memory Management
โข Using Stacks to Evaluate Mathematical Expressions with Variables
๐ณ. ๐ฆ๐๐ฎ๐ฐ๐ธ-๐๐ฎ๐๐ฒ๐ฑ ๐๐น๐ด๐ผ๐ฟ๐ถ๐๐ต๐บ ๐๐ต๐ฎ๐น๐น๐ฒ๐ป๐ด๐ฒ๐
โข Finding the Longest Valid Parentheses Substring
โข Maximum Area Rectangle in a Binary Matrix Using Stack
โข Design a Stack That Supports Random Access
โข Sort a Stack Using Iterative Approach
โข Design a Stack-Based Cache with Least Recently Used (LRU) Functionality
โข Implement an Expression Evaluator with Nested Function Calls Using Stacks
โข Finding the Nearest Smaller Element Using a Monotonic Stack
โข Using a Stack to Detect Palindromes (String or Number)
โข Merge Intervals Using a Stack
โข Evaluate Complex Arithmetic Expressions with Parentheses and Nested Functions
๐ด. ๐ฆ๐๐ฎ๐ฐ๐ธ ๐ข๐ฝ๐๐ถ๐บ๐ถ๐๐ฎ๐๐ถ๐ผ๐ป ๐ฎ๐ป๐ฑ ๐๐ผ๐บ๐ฝ๐น๐ฒ๐ ๐ถ๐๐ ๐๐ป๐ฎ๐น๐๐๐ถ๐
โข Optimizing Stack Operations for Space Efficiency
โข Time Complexity Analysis of Stack Operations in Different Implementations
โข Analyzing the Impact of Dynamic Resizing on Stack Performance
โข Space Complexity Analysis of Recursive Stack-Based Algorithms
โข Reducing Stack Overflows by Optimizing Recursive Depths
โข Balancing Memory and Performance in Stack-Based Applications
๐ต. ๐๐ฝ๐ฝ๐น๐ถ๐ฐ๐ฎ๐๐ถ๐ผ๐ป ๐ผ๐ณ ๐ฆ๐๐ฎ๐ฐ๐ธ๐ ๐ถ๐ป ๐ฅ๐ฒ๐ฎ๐น-๐ช๐ผ๐ฟ๐น๐ฑ ๐ฃ๐ฟ๐ผ๐ฏ๐น๐ฒ๐บ๐
โข Using a Stack for Depth-First Search (DFS) in Graph Traversal
โข Implementing Backtracking Algorithms Using a Stack
โข Text Editor Cursor Movement Simulation Using a Stack
โข Memory Management Techniques Using Stacks (Call Stack in Function Calls)
โข Implementing Parantheses Checker for Code Compilation
โข Using Stacks for Maze Solving Algorithms
โข Real-Time Parsing of Mathematical Expressions Using Stacks
โข Implementing Undo/Redo Functionality in a Text Editor Using Two Stacks
โข Stack-Based Parsing of HTML/XML
๐ญ๐ฌ. ๐๐ผ๐บ๐ฝ๐ฒ๐๐ถ๐๐ถ๐๐ฒ ๐ฃ๐ฟ๐ผ๐ด๐ฟ๐ฎ๐บ๐บ๐ถ๐ป๐ด ๐ฎ๐ป๐ฑ ๐๐ป๐๐ฒ๐ฟ๐๐ถ๐ฒ๐ ๐ฃ๐ฟ๐ผ๐ฏ๐น๐ฒ๐บ๐ ๐๐ถ๐๐ต ๐ฆ๐๐ฎ๐ฐ๐ธ๐
โข Implementing a Stack-Based Algorithm for Largest Rectangle in Histogram with Time Complexity Optimization
โข Solving LeetCodeโs โDaily Temperaturesโ Using a Stack
โข Using Stacks for Dynamic Programming Problems (e.g., Longest Increasing Subsequence)
โข Stack-Based Algorithms for Dynamic Range Queries in Arrays
โข Implementing Sliding Window Maximum Using Stack and Deque
โข Efficiently Finding Maximum Rectangles in Binary Matrices Using Stacks
โข Using a Stack for Validating Nested Data Structures (JSON, XML)
โข Implementing a Stack-Based Approach for Finding Longest Balanced Substring
โข Stack-Based Techniques for Handling Collisions in Data Structures
โข Using Stacks to Solve Problems on Contiguous Subarrays with Maximum Sum
These additional topics provide a wider perspective on how stacks can be used, optimized, and applied in various scenarios. They are useful for competitive programming, coding interviews, and deepening your understanding of stack-based solutions.
๐ Connect with me on LinkedIn:
I regularly share insights on JavaScript, Node.js, React, Next.js, software engineering, data structures, algorithms, and more. Letโs connect, learn, and grow together!
Follow me: Nozibul Islam
Top comments (2)
Thank you so much! Stay connected by following, and I'll do my best to share the best resources!