Gokul45-45
d1ea306920
feat: add Valid Parentheses algorithm using Stack ( #7117 )
...
* feat: add Valid Parentheses algorithm using Stack
* fix: add missing ValidParentheses.java implementation
* fix: remove trailing spaces and add newline at EOF
* fix: remove misplaced ValidParentheses.java from root
2025-11-27 11:29:48 +00:00
Arzoo1701
d126fd59f7
Add Trapping Rainwater problem implementation (Two Pointer Approach) ( #6990 )
...
* Add Trapping Rainwater problem implementation (Two Pointer Approach)
* Add Wikipedia reference link for Trapping Rainwater problem
* fix: format TrappingRainwater.java for CI check
* fix: add package and resolve checkstyle errors for TrappingRainwater.java
* fix: declare TrappingRainwater as final to pass Checkstyle
* Add test cases for TrappingRainwater algorithm
* Add test cases for TrappingRainwater algorithm
* Move TrappingRainwater algorithm to stacks package
* Fix: Move TrappingRainwater to stacks and normalize newline in JugglerSequence
* Fix: Normalize newline in JugglerSequence to ensure test consistency
* Fix: Normalize newline in JugglerSequence and remove return statement
* Add JaCoCo plugin for code coverage reporting
* Revert pom.xml to original version from master
* Fix: Revert the pom.xml file
---------
Co-authored-by: Deniz Altunkapan <deniz.altunkapan@outlook.com >
2025-11-05 18:41:08 +01:00
Oleksandr Klymenko
7e3fbae1a4
testing: improve SortStackTest ( #6422 )
...
testing: improve SortStackTest
Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com >
2025-07-23 17:09:18 +02:00
Oleksandr Klymenko
ceead5eccd
testing: refactor to ParameterizedTest PrefixEvaluatorTest ( #6415 )
...
testing: refactor to ParameterizedTest PrefixEvaluatorTest
Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com >
2025-07-22 17:22:08 +00:00
Oleksandr Klymenko
0e9be57ed4
testing: improving PostfixEvaluatorTest ( #6405 )
...
* testing: improving PostfixEvaluatorTest
* testing: redundant cases
2025-07-21 17:55:07 +02:00
Oleksandr Klymenko
d14e8a60e8
testing: improve test coverage DuplicateBracketsTest ( #6396 )
...
* testing: improve test coverage DuplicateBracketsTest
* style: fix formatting checkstyle
* style: fix formatting checkstyle
---------
Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com >
2025-07-19 08:00:49 +00:00
Oleksandr Klymenko
054002adb2
testing: added unit tests for the MinStackUsingTwoStacks ( #6387 )
...
* testing: added unit tests for the MinStackUsingTwoStacks
* checkstyle: fix import order
---------
Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com >
2025-07-17 15:37:46 +00:00
Oleksandr Klymenko
7590d8234f
refactor: add JavaDocs and improve readability in InfixToPrefix ( #6363 )
...
* refactor: add JavaDocs and improve readability in InfixToPrefix
* formatting: remove redundant newline
---------
Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com >
2025-07-12 06:47:49 +00:00
Oleksandr Klymenko
acb4753d65
refactor: Improve readability and code clarity in InfixToPostfix ( #6362 )
...
refactor: improve InfixToPostfix
Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com >
2025-07-12 08:44:57 +02:00
Oleksandr Klymenko
2ccc15671f
refactor: clean up LargestRectangle and convert tests to parameterized format ( #6356 )
...
* refactor: clean up LargestRectangle and convert tests to parameterized format
* refactor: fix clang formatting issue
* refactor: fix clang formatting issue for test data
---------
Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com >
2025-07-11 21:32:42 +02:00
S M Jishanul Islam
60060250ca
Add palindrome checker using stack ( #5887 )
2024-10-22 22:31:29 +03:00
S M Jishanul Islam
0f8cda987d
Add the retrieval of minimum and maximum element from stack at O(1) ( #5714 )
2024-10-22 18:36:14 +00:00
Hardik Pawar
adf21ab0c8
feat: Add CelebrityFinder new algorithm with Junit tests ( #5756 )
2024-10-15 08:48:48 +00:00
Hardik Pawar
776946e165
feat: Add MinStackUsingTwoStacks new algorithm with Junit tests ( #5758 )
2024-10-15 11:12:50 +03:00
Hardik Pawar
30504c179e
Add MinStackUsingSingleStack algorithm ( #5759 )
2024-10-15 08:36:22 +03:00
Hardik Pawar
bae7f89156
feat: Add PrefixEvaluator new algorithm with Junit tests ( #5755 )
2024-10-13 10:57:05 +00:00
Hardik Pawar
b0c8a8f0ce
feat: Add PostfixEvaluator new algorithm with Junit tests ( #5754 )
2024-10-13 10:50:31 +00:00
Hardik Pawar
d3bd2874c8
Add StackUsingTwoQueues algorithm ( #5625 )
2024-10-08 20:37:10 +03:00
Hardik Pawar
136e0e23a4
Add SortStack algorithm ( #5624 )
2024-10-08 19:17:56 +03:00
Hardik Pawar
ea6457bf41
Add PrefixToInfix.java new algorithm ( #5552 )
...
* Add `PrefixToInfix.java` new algorithm
* Update directory
* Fix clang error
* Update directory
* Fix comment
* Add suggested changes
---------
Co-authored-by: Hardvan <Hardvan@users.noreply.github.com >
Co-authored-by: Alex Klymenko <alexanderklmn@gmail.com >
2024-10-04 19:58:52 +03:00
Hardik Pawar
b61c54797b
Add Infix To Prefix new algorithm with unit tests ( #5537 )
...
* Add `Infix To Prefix` new algorithm
* Update directory
* Update directory
* Fix clang
* Fix clang
* Add more tests
* Fix comma error
* Fix test cases
* Fix comment
* Remove unused import
* Update directory
* Add tests for null & empty strings
* Implement suggested changes
* Update directory
* Fix comment
---------
Co-authored-by: Hardvan <Hardvan@users.noreply.github.com >
Co-authored-by: Alex Klymenko <alexanderklmn@gmail.com >
2024-10-04 19:40:44 +03:00
Alex Klymenko
87cf89192b
style: use proper spelling ( #5436 )
...
checkstyle: fix typos, style
Co-authored-by: alxkm <alx@alx.com >
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com >
2024-08-30 08:50:14 +02:00
Alex Klymenko
c57e02dc85
refactor: DuplicateBrackets ( #5424 )
...
refactor: DuplicateBrackets
Co-authored-by: alxkm <alx@alx.com >
2024-08-29 19:21:05 +05:30
Alex Klymenko
633b9d4112
refactor: PostfixToInfix ( #5409 )
...
* refactor: PostfixToInfix
* checkstyle: fix formatting
* refactor: add support for one character
---------
Co-authored-by: alxkm <alx@alx.com >
2024-08-27 15:03:26 +02:00
Alex Klymenko
af7c425010
refactor: NextSmallerElement ( #5412 )
...
* refactor: NextSmallerElement
* checkstyle: fix formatting
* checkstyle: fix formatting
* checkstyle: remove redundant new line
---------
Co-authored-by: alxkm <alx@alx.com >
2024-08-27 11:31:47 +02:00
Alex Klymenko
c8cf302d30
refactor: NextGreaterElement ( #5405 )
...
* refactor: NextGreaterElement
* checkstyle: fix formatting
---------
Co-authored-by: alxkm <alx@alx.com >
2024-08-27 10:39:40 +02:00
Alex Klymenko
4347f5b9f6
refactor: InfixToPostfix ( #5401 )
2024-08-26 16:43:13 +03:00
Alex Klymenko
64ff9b2efe
refactor: StackPostfixNotation ( #5400 )
2024-08-26 16:38:33 +03:00
Alex Klymenko
7e9cdad3ee
refactor: BalancedBrackets ( #5391 )
2024-08-25 23:21:30 +03:00
Alex Klymenko
3187b1f99c
refactor: DecimalToAnyUsingStack ( #5392 )
2024-08-25 23:01:52 +03:00
Alex Klymenko
3398c562a1
test: LargestRectangle ( #5360 )
2024-08-22 10:44:01 +03:00
Piotr Idzik
414835db11
style: enable AvoidStarImport in checkstyle ( #5141 )
2024-05-05 20:48:56 +02:00
Piotr Idzik
098f044370
Remove CalculateMaxOfMin ( #5079 )
2024-03-22 19:18:08 +08:00
Subhradeep Bera
26c2465328
Moved StackPostfixNotation.java from the Others section to the Stack section ( #4372 )
...
* Moved StackPostfixNotation.java from the Others section to the Stack section
* Put all stack related algo in a separate stack directory in the algorithms directory. The stack directory under data-structures now only contains various implementations of the stack data structure.
* formatted files
2023-09-18 21:27:36 +02:00