Commit Graph

964 Commits

Author SHA1 Message Date
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
Oleksandr Klymenko
f3252793e1 refactor: refactor Alphabetical and AlphabeticalTest (#6355) 2025-07-10 17:52:38 +02:00
Oleksandr Klymenko
a6aadd5b64 refactor: improve Sparsity class with input validation and clearer logic (#6351)
Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com>
2025-07-09 18:49:58 +00:00
Oleksandr Klymenko
c997a32018 refactor ShuffleArray: improve documentation and maintainability (#6357)
refactor ShuffleArray: Improve Documentation and Code Quality
2025-07-09 20:36:39 +02:00
Oleksandr Klymenko
6c3049530f refactor: optimize ValidParentheses methods and add parameterized tests (#6352) 2025-07-08 10:50:06 +03:00
Oleksandr Klymenko
fa2ca9db39 refactor: improve PythagoreanTriple logic and add parameterized tests (#6350) 2025-07-08 00:29:52 +03:00
Oleksandr Klymenko
2f5bc8c242 refactor: improve median calculator class design and readability (#6349) 2025-07-07 14:29:10 +03:00
Oleksandr Klymenko
4b6006c876 refactor: improve code and test coverage for MapReduce example (#6348)
refactor: improve code and test coverage for MapReduce example
2025-07-06 23:19:50 +02:00
Oleksandr Klymenko
350f149657 Add parameterized tests for BitSwap (#6347) 2025-07-06 20:03:02 +03:00
KevinMwita7
c782f05ed4 Add cache with FIFO replacement policy (#6337) 2025-07-05 13:29:46 +00:00
Aditya
d709317b2e Add RandomizedClosestPair Algorithm and Unit Tests (#6339) 2025-07-04 10:23:49 +00:00
Aditya
58ac54cbdb Add Freivalds' Algorithm for randomized matrix multiplication verification (#6340) 2025-07-04 13:16:57 +03:00
codingmydna
712ada5102 Correct column pointer initialization in RowColumnWiseSorted2dArrayBinarySearch (#6333) 2025-07-02 12:51:56 +00:00
KevinMwita7
bb36d13c93 Add RR cache (#6307) 2025-06-30 18:45:37 +00:00
02RdDT
616d15a408 Shortest coprime segment using sliding window technique (#6296)
* Shortest coprime segment using sliding window technique

* mvn checkstyle passes

* gcd function reformatted

* fixed typo in ShortestCoprimeSegment

* 1. shortestCoprimeSegment now returns not the length, but the shortest segment itself.
2. Testcases have been adapted, a few new ones added.

* clang formatted ShortestCoprimeSegmentTest.java code
2025-06-18 21:29:35 +02:00
Deniz Altunkapan
1745d19f09 refactor: unified duplicate Anagram classes into a single implementation (#6290) 2025-06-11 20:04:06 +03:00
Pau López Núñez
0b21bb0a38 Add Boyer-Moore string search algorithm with JUnit tests (#6274) 2025-06-11 15:37:42 +00:00
Piotr Idzik
7602f1ef4c chore: suppress unchecked in selected classes (#6262) 2025-06-05 19:13:46 +03:00
Piotr Idzik
ec6f09c373 chore: suppress rawtypes in selected classes (#6261) 2025-06-05 14:23:28 +03:00
Piotr Idzik
27a774020c style: include SLS_SUSPICIOUS_LOOP_SEARCH (#6260) 2025-06-04 23:37:38 +03:00
Soham Kamble
2320b46b3f Add BTree implementation (#6248) 2025-05-28 15:00:41 +03:00
Vibhu Khera
b09766ede4 Add Randomized Quick Sort (#6234) 2025-05-09 21:50:09 +00:00
Muhammad Ezzat
6fe630cdf2 Add Monte Carlo's Integral Approximation (#6235) 2025-05-09 20:27:27 +00:00
Muhammad Ezzat
571d05caa8 Add Karger's minimum cut algorithm (#6233) 2025-05-05 18:09:28 +03:00
Vusal Huseynov
ad5e496b0c Add LongestIncreasingSubsequenceNLogN (#6221) 2025-04-15 13:08:45 +00:00
cureprotocols
f53bc0080b Add ReservoirSampling algorithm to randomized module (#6204) 2025-04-07 23:58:44 +03:00
Piotr Idzik
251e9e1902 refactor: introduce SinglyLinkedListNode (#6210) 2025-04-02 18:51:40 +03:00
Deniz Altunkapan
743f9660a8 Add Traveling Salesman Problem (#6205) 2025-03-31 22:18:19 +00:00
Piotr Idzik
0072ed9aa7 style: do not suppress lossy-conversions (#6206) 2025-03-31 19:20:58 +02:00
Sufiyan Chougule
45148874e8 Add feature to convert numeric words to their number representation (#6195) 2025-03-18 12:29:20 +02:00
David Kong
5285a3d7aa Add a linear system solver (#6196) 2025-03-14 21:57:55 +00:00
Hakim's Garage
769e4975f6 Add Parenthesis to MathBuilder (#6193) 2025-03-14 22:34:03 +02:00
Hakim's Garage
e6073f8fef Add math builder (#6190) 2025-03-12 18:35:21 +02:00
Deniz Altunkapan
c8281e02fb Add Maximum Weighted Matching Algorithm for Trees (#6184) 2025-03-01 10:52:06 +02:00
geetoormvn
849ab913c0 Add reverseUsingStringBuilder method to reverse a string (#6182) 2025-02-27 10:45:52 +00:00
Nithin U
5be5e35d2d Add Heavy-Light Decomposition (HLD) (#6169) 2025-02-17 16:55:06 +02:00
Niklas Hoefflin
63ce6b8ca5 Refactor LWWElementSet (#6164) 2025-02-13 22:33:52 +02:00
Deniz Altunkapan
d4b28b348e Add Constrained Shortest Path Problem (CSPP) / Shortest Path Problem with Resource Constraints (SPPRC) (#6155) 2025-01-28 12:33:58 +02:00