Skip to content

LeetCode-155: Min Stack - #143

Merged
WazedKhan merged 1 commit into
mainfrom
leetcode-155-min-stack
Jul 13, 2026
Merged

LeetCode-155: Min Stack#143
WazedKhan merged 1 commit into
mainfrom
leetcode-155-min-stack

Conversation

@WazedKhan

@WazedKhan WazedKhan commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

  • New Features
    • Added a stack data structure that supports adding and removing values.
    • Added operations to view the top value and retrieve the minimum value in constant time.

@WazedKhan
WazedKhan merged commit 8add45b into main Jul 13, 2026
2 checks passed
@WazedKhan
WazedKhan deleted the leetcode-155-min-stack branch July 13, 2026 04:19
@coderabbitai

coderabbitai Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: ae6ead08-6338-4107-8b28-5ca149213ff8

📥 Commits

Reviewing files that changed from the base of the PR and between a632408 and 7d478a8.

📒 Files selected for processing (1)
  • LeetCode/medium/mini_stack_155.py

📝 Walkthrough

Walkthrough

Adds a MinStack class that stores pushed values and tracks the minimum at each stack depth, with methods for pushing, popping, reading the top value, and retrieving the minimum.

Changes

MinStack

Layer / File(s) Summary
Stack operations and minimum tracking
LeetCode/medium/mini_stack_155.py
Adds parallel lists for stack values and running minimums, plus push, pop, top, and getMin methods.

Estimated code review effort: 1 (Trivial) | ~2 minutes

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch leetcode-155-min-stack

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant