Commit Graph

2844 Commits

Author SHA1 Message Date
Oleksandr Klymenko
3304cf2e58 testing: improve QueueByTwoStacksTest (#6416)
testing: improve QueueByTwoStacksTest
2025-07-22 19:33:55 +02:00
Deniz Altunkapan
7c2af29d29 Update DIRECTORY.md (#6431)
Co-authored-by: alxkm <alxkm@users.noreply.github.com>
2025-07-22 17:25:46 +00: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
Vishwajeet Deshmane
cfd784105b Feat(Improved): Add 0/1 Knapsack Problem: Recursive and Tabulation (Bottom-Up DP) Implementations in Java along with their corresponding Tests (#6425)
* feat: Add 0/1 Knapsack and its tabulation implementation with their corresponding tests

* feat: Add 0/1 Knapsack and its tabulation implementation with their corresponding tests

* feat: Add 0/1 Knapsack and its tabulation implementation with their corresponding tests

* Feat:add 0/1knapsack and 0/1knapsacktabulation along with their tests

* Feat:add 0/1knapsack and 0/1knapsacktabulation along with their tests

* Feat:add 0/1knapsack and 0/1knapsacktabulation along with their tests

---------

Co-authored-by: Oleksandr Klymenko <alexanderklmn@gmail.com>
2025-07-22 19:17:24 +02:00
Oleksandr Klymenko
bbbc1dd946 testing: improving CountSinglyLinkedListRecursionTest (#6413)
Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com>
2025-07-22 16:52:33 +00:00
Oleksandr Klymenko
78b62191ab testing: improving GenerateSubsetsTest (#6412)
* testing: improving GenerateSubsetsTest

* testing: change List to more common Iterable

---------

Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com>
2025-07-22 18:49:37 +02:00
Deniz Altunkapan
9a46339bec Update DIRECTORY.md (#6426)
Co-authored-by: DenizAltunkapan <DenizAltunkapan@users.noreply.github.com>
2025-07-21 19:05:48 +02:00
IDDQD
c9cc8f4698 Add cache with LIFO replacement policy (#6390)
* Added Random Replacement cache

* Implement cache with LIFO replacement policy

* Ran clang-format

* Make necessary variables final, replace HashMap.newHashMap(int capacity) with new HashMap<>(int capacity)

---------

Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com>
2025-07-21 18:11:13 +02:00
Nishitha Wihala
2dfad7ef8f Add matrix multiplication with double[][] and unit tests (#6417)
* MatrixMultiplication.java created and updated.

* Add necessary comment to MatrixMultiplication.java

* Create MatrixMultiplicationTest.java

* method for 2 by 2 matrix multiplication is created

* Use assertMatrixEquals(), otherwise there can be error due to floating point arithmetic errors

* assertMatrixEquals method created and updated

* method created for 3by2 matrix multiply with 2by1 matrix

* method created for null matrix multiplication

* method for test matrix dimension error

* method for test empty matrix input

* testMultiply3by2and2by1 test case updated

* Check for empty matrices part updated

* Updated Unit test coverage

* files updated

* clean the code

* clean the code

* Updated files with google-java-format

* Updated files

* Updated files

* Updated files

* Updated files

* Add reference links and complexities

* Add test cases for 1by1 matrix and non-rectangular matrix

* Add reference links and complexities

---------

Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com>
2025-07-21 16:07:13 +00:00
Oleksandr Klymenko
2722b0ecc9 testing: improving SkipListTest (#6411)
* testing: improving SkipListTest

* style: fixed formatting

---------

Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com>
2025-07-21 16:02:07 +00:00
Oleksandr Klymenko
75298bb3f4 testing: improving DequeTest (#6410)
* testing: improving DequeTest

* testing: redundant case

* testing: fix to many static imports

* testing: add more test cases

---------

Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com>
2025-07-21 15:58:22 +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
31bf130e9e refactor: improving Median (#6404)
refactor: improving Median

Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com>
2025-07-20 08:21:46 +00:00
Deniz Altunkapan
b45fd2a656 Update DIRECTORY.md (#6419)
Co-authored-by: DenizAltunkapan <DenizAltunkapan@users.noreply.github.com>
2025-07-20 10:13:12 +02:00
Oleksandr Klymenko
171fdc9925 testing: improving CRCAlgorithmTest (#6403)
* testing: improving CRCAlgorithmTest

* style: fix formatting

---------

Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com>
2025-07-20 08:03:23 +00:00
justakayy
c7af421dfa test: PointTest.java #HSFDPMUW (#6391)
* test: added Tests for Point.java

* style: fixed formatting and comments

* style: formatted with clang-format and renamed variables

* style: fixed imports to not use the '.*' form

---------

Co-authored-by: Aaron <aaron@hochschule.de>
Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com>
2025-07-20 09:59:18 +02:00
Oleksandr Klymenko
0a46b828c2 testing: Enhance ValidParenthesesTest (#6398)
* testing: improve test coverage ValidParenthesesTest

* style: fix formatting for checkstyle

* style: fix formatting for checkstyle

* style: fix import

---------

Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com>
2025-07-19 14:07:54 +00:00
Oleksandr Klymenko
334543f54c testing: improve test coverage PriorityQueuesTest (#6397)
testing: improve test coverage PriorityQueuesTest

Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com>
2025-07-19 14:04:10 +00: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
76aea4254c testing: improving test coverage DisjointSetUnionTest (#6394)
* testing: improving test coverage DisjointSetUnionTest

* style: remove redundant comment

* testing: removing unused variable

---------

Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com>
2025-07-19 09:57:58 +02:00
Deniz Altunkapan
5c6d3c3443 Update DIRECTORY.md (#6414)
Co-authored-by: DenizAltunkapan <DenizAltunkapan@users.noreply.github.com>
2025-07-18 23:01:50 +02:00
Oleksandr Klymenko
d6a871e683 testing: improve test coverage RangeInSortedArrayTest (#6395)
* testing: improve test coverage RangeInSortedArrayTest

* style: fix formatting checkstyle

---------

Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com>
2025-07-18 22:55:37 +02:00
Oleksandr Klymenko
fc477ee8da testing: improving test coverage CountingInversionsTest (#6393)
testing: improving test coverage CountingInversionsTest

Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com>
2025-07-18 21:29:16 +02:00
dependabot[bot]
44c572b36b chore(deps): bump com.mebigfatguy.fb-contrib:fb-contrib from 7.6.11 to 7.6.12 (#6406)
chore(deps): bump com.mebigfatguy.fb-contrib:fb-contrib

Bumps [com.mebigfatguy.fb-contrib:fb-contrib](https://github.com/mebigfatguy/fb-contrib) from 7.6.11 to 7.6.12.
- [Commits](https://github.com/mebigfatguy/fb-contrib/commits/v7.6.12)

---
updated-dependencies:
- dependency-name: com.mebigfatguy.fb-contrib:fb-contrib
  dependency-version: 7.6.12
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Oleksandr Klymenko <alexanderklmn@gmail.com>
2025-07-18 13:58:17 +03:00
Oleksandr Klymenko
d0d4b3c8fb testing: additional testcases for CountSinglyLinkedListRecursionTest (#6392)
testing: additional testcases for CountSinglyLinkedListRecursionTest

Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com>
2025-07-18 05:51:11 +00:00
Oleksandr Klymenko
2f2a32b8c2 testing: improve test coverage ParityCheckTest (#6389)
testing: improve test coverage ParityCheckTest

Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com>
2025-07-17 20:03:24 +00:00
Oleksandr Klymenko
7f6e677b07 testing: improve test coverage SortedLinkedListTest (#6388)
* testing: improve test coverage SortedLinkedListTest

* checkstyle: fix comments formatting

* checkstyle: fix formatting
2025-07-17 22:00:41 +02: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
a796f6dc41 testing: added unit tests for the BinaryPow.binPow (#6386)
testing: added unit tests for the BinaryPow.binPow

Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com>
2025-07-17 15:32:48 +00:00
Oleksandr Klymenko
440b6f5edf testing: improve tests coverage AbsoluteValueTest (#6385)
testing: improve tests coverage AbsoluteValueTest
2025-07-17 17:29:45 +02:00
Oleksandr Klymenko
dd1a51b20f testing: add more cases for AverageTest (#6384)
* testing: add more cases for AverageTest

* checkstyle: fix formatting
2025-07-16 15:10:22 +00:00
Oleksandr Klymenko
434ab50ff4 refactor: Convolution (#6382)
refactor: Convolution

Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com>
2025-07-16 15:05:13 +00:00
Oleksandr Klymenko
d55e89dc71 refactor: Mode (#6381)
refactor: Mode
2025-07-16 17:02:16 +02:00
Oleksandr Klymenko
dcb02c61df refactor: MajorityElement (#6380)
* refactor: MajorityElement

* refactor: fix import ordering

---------

Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com>
2025-07-15 17:10:06 +02:00
Oleksandr Klymenko
287a708c7f refactor: Intersection (#6379)
refactor: Intersection improvement
2025-07-15 17:04:58 +02:00
Oleksandr Klymenko
ca7c77f16b refactor: improving DisjointSetUnion (#6378)
* refactor: improving DisjointSetUnion

* refactor: remove comment as it already in description

---------

Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com>
2025-07-15 05:31:09 +00:00
Oleksandr Klymenko
7e37d94c53 refactor: improving readability DecimalToAnyUsingStack (#6377)
refactor: improving readability DecimalToAnyUsingStack

Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com>
2025-07-15 05:26:49 +00:00
Oleksandr Klymenko
95116dbee4 refactor: improving MedianOfMatrix (#6376)
refactor: improving MedianOfMatrix
2025-07-15 07:23:49 +02:00
Oleksandr Klymenko
25aaa6e064 refactor: OnesComplement Tests Using Parameterized Inputs (#6375)
refactor: OnesComplement Tests Using Parameterized Inputs

Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com>
2025-07-14 05:51:17 +00:00
Oleksandr Klymenko
933e929b54 refactor: refactor Ceil and improved tests (#6366)
* refactor: refactor Ceil and improved tests

* checkstyle: remove redundant import

* refactor: fix edge cases

* refactor: fix checkstyle

* refactor: fix checkstyle import order
2025-07-14 07:47:22 +02:00
Oleksandr Klymenko
ef93cc1503 refactor: TwoPointers (#6374)
* refactor: TwoPointers

* refactor: fix test formatting

* refactor: fix checkstyle

* refactor: fix checkstyle
2025-07-13 09:25:26 +00:00
Oleksandr Klymenko
182118b6a4 refactor: cleanup GenerateSubsets (#6373)
refactor: cleanup GenerateSubsets

Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com>
2025-07-13 09:17:38 +00:00
Oleksandr Klymenko
910d5b880a refactor: Refactor SJFScheduling and Tests (#6372)
* refactor: Refactor SJFScheduling and Tests

* refactor: fix checkstyle

* refactor: add full imports

* refactor: add full imports

* refactor: remove redundant newline

* refactor: fix indexed list iteration
2025-07-13 11:11:57 +02:00
Oleksandr Klymenko
dba2d869f2 refactor: improving GenericRoot (#6365)
refactor: improving GenericRoot
2025-07-12 06:51:49 +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
0a4f5542d9 cleanup: Improve docs, safety, and readability in RangeInSortedArray (#6361)
* cleanup: Improve docs, safety, and readability in RangeInSortedArray

* formatting: fix comment formatting issue

* formatting: fix array formatting issue

---------

Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com>
2025-07-11 19:42:45 +00:00
Oleksandr Klymenko
048bba9499 refactor: adding docs for LongestCommonPrefixTest and Parameterized Tests (#6360)
* refactor: adding docs for LongestCommonPrefixTest and Parameterized Tests

* checkstyle: fix clang formatting

---------

Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com>
2025-07-11 19:39:33 +00:00
Oleksandr Klymenko
3e0fd11a96 refactor: refactoring and documenting Isomorphic String Checker (#6359)
refactor: refactoring and documenting Isomorphic String Checker

Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com>
2025-07-11 19:36:29 +00: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