avatar_url

Sandesh Rana | Python

I'm a developer from Himalayas, with a passion for crafting efficient and elegant code, with creativity and precision.

Stack and Queue

20 Aug 2024 » programming, datastructure

Stacks and Queues: Easy to Hard Problems

Easy

  1. Valid Parentheses
  2. Implement Queue using Stacks
  3. Implement Stack using Queues
  4. Min Stack
  5. Baseball Game
  6. Next Greater Element I

Medium

  1. Evaluate Reverse Polish Notation
  2. Generate Parentheses
  3. Daily Temperatures
  4. Next Greater Element II
  5. Design Circular Queue
  6. Asteroid Collision
  7. Design a Stack With Increment Operation
  8. Online Stock Span

Hard

  1. Trapping Rain Water
  2. Largest Rectangle in Histogram
  3. Sliding Window Maximum
  4. Basic Calculator
  5. Basic Calculator II
  6. Design a Snake Game
  7. Remove Duplicate Letters
  8. Shortest Subarray with Sum at Least K