πDay 7. Get Min from Stack π§
π‘ Problem Description:
π Example Walkthrough:
Example 1
q = 7
queries = [[1, 2], [1, 3], [3], [2], [4], [1, 1], [4]][3, 2, 1]Example 2
Constraints
π― My Approach:
Using Two Stacks (O(1) Time, O(N) Space)
π Time and Auxiliary Space Complexity
π Solution Code
Code (C++)
Code (Java)
Code (Python)
π― Contribution and Support:
πVisitor Count
PreviousDay 6. Maximum of minimum for every window size π§ NextDay 8. Evaluation of Postfix Expression π§
Last updated