-
Notifications
You must be signed in to change notification settings - Fork 19.9k
feat: Add MinStackUsingSingleStack
new algorithm with Junit tests
#5759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5759 +/- ##
============================================
+ Coverage 63.96% 63.98% +0.01%
- Complexity 4172 4179 +7
============================================
Files 583 584 +1
Lines 16320 16336 +16
Branches 3150 3150
============================================
+ Hits 10439 10452 +13
- Misses 5456 5457 +1
- Partials 425 427 +2 ☔ View full report in Codecov by Sentry. |
This contribution looks like from leetcode. And according to rules, could you please provide any sources that describe that this is not from leetcode or similar resources. |
The MinStackUsingSingleStack algorithm is a widely known solution in data structures, frequently discussed in programming interviews and textbooks. It is not exclusive to LeetCode but is a classic problem in designing a stack that supports
This problem is a common way to assess problem-solving skills and understanding of space-time trade-offs in interviews and is thus not tied to any single platform. |
clang-format -i --style=file path/to/your/file.java