-
Notifications
You must be signed in to change notification settings - Fork 19.9k
feat: Add MinStackUsingTwoStacks
new algorithm with Junit tests
#5758
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
MinStackUsingTwoStacks
new algorithm with Junit tests
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5758 +/- ##
============================================
+ Coverage 63.96% 63.98% +0.01%
- Complexity 4172 4178 +6
============================================
Files 583 584 +1
Lines 16320 16333 +13
Branches 3150 3151 +1
============================================
+ Hits 10439 10450 +11
- Misses 5456 5457 +1
- Partials 425 426 +1 ☔ 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 MinStackUsingTwoStacks 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