2477 Commits

Author SHA1 Message Date
c301fec0ac style: enable TodoComment in checkstyle (#5785)
* style: enable TodoComment in checkstyle

* style: remove redundant blank line

---------

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
2024-10-13 20:38:01 +02:00
ebc3cd2233 style: resolve some FCBL_FIELD_COULD_BE_LOCAL warnings (#5764)
style: make simple fields local
2024-10-13 15:16:10 +00:00
9b52ac9633 feat: Add IPConverter new algorithm with Junit tests (#5750) 2024-10-13 11:30:27 +00:00
e291516dc9 Refactor BCD Conversion docs and add more tests (#5762) 2024-10-13 11:20:20 +00:00
bae7f89156 feat: Add PrefixEvaluator new algorithm with Junit tests (#5755) 2024-10-13 10:57:05 +00:00
b0c8a8f0ce feat: Add PostfixEvaluator new algorithm with Junit tests (#5754) 2024-10-13 10:50:31 +00:00
596c6147af Add function documentation, enhance comments in TowerOfHanoi.java (#5533) 2024-10-13 12:30:53 +03:00
6af7f7b126 Add Xs3Conversion algorithm (#5743) 2024-10-13 11:30:09 +03:00
6682c7c76e Add BcdConversion algorithm (#5742) 2024-10-13 09:22:57 +03:00
4a03f42061 Add algo for BooleanGateslogic (#5717) 2024-10-12 20:58:52 +02:00
1617ed1368 feat : new bit manipulation algo FindNthBit of a number (#5731)
* feat : new algo uniquesubseqcount

* Update UniqueSubsequencesCount.java

* Update UniqueSubsequencesCountTest.java

* Update UniqueSubsequencesCount.java

* Update UniqueSubsequencesCount.java

* Update UniqueSubsequencesCount.java

* Update UniqueSubsequencesCount.java

* Update UniqueSubsequencesCount.java

* Update UniqueSubsequencesCount.java

* Update UniqueSubsequencesCountTest.java

* Update UniqueSubsequencesCount.java

* Update UniqueSubsequencesCountTest.java

* Update UniqueSubsequencesCount.java

* Update UniqueSubsequencesCountTest.java

* Update UniqueSubsequencesCountTest.java

* Update UniqueSubsequencesCountTest.java

* Update UniqueSubsequencesCount.java

* feat : new bitmanipulation algo

* feat :  new bit algo

* Update FindNthBitTest.java

* Update FindNthBit.java

---------

Co-authored-by: Alex Klymenko <alexanderklmn@gmail.com>
2024-10-12 20:47:42 +02:00
ac65af44c9 Add Johnson's algorithm (#5712) 2024-10-12 10:44:41 +03:00
31de2db0ae Add fast exponentiation algorithm (#5715) 2024-10-12 10:39:05 +03:00
f8397bf09b Add ADFGVX Cipher (#5631) 2024-10-12 10:34:49 +03:00
8722598434 Add ParityCheck algorithm (#5704) 2024-10-12 10:28:42 +03:00
e263edcfe0 Add QuadTree data structure (#5681) 2024-10-12 10:23:41 +03:00
e38611e9db Optimize and Format Knapsack Memoization Algorithm (#5685) 2024-10-12 07:11:25 +00:00
b81671e66d Add tests, remove main in LowerBound (#5672) 2024-10-12 10:04:54 +03:00
138793df1d Improve docs, remove main, add tests for `MatrixChainRecursiveTopDo… (#5659) 2024-10-12 09:51:41 +03:00
eba6823c3a Add HigherLowerPowerOfTwo algorithm (#5707) 2024-10-12 09:45:28 +03:00
4d6dd13b56 Add BinaryPalindromeCheck algorithm (#5708) 2024-10-12 09:36:29 +03:00
bf0377f44b Add HammingDistance algorithm (#5706) 2024-10-12 09:31:04 +03:00
c0ffbb0e45 Add GrayCodeConversion algorithm (#5705) 2024-10-12 09:26:04 +03:00
b8633ad14c feat: Add countLeadingZeros new algorithm with Junit tests (#5703) 2024-10-12 09:19:55 +03:00
966b4e369d feat: Add ClearLeftmostSetBit new algorithm with Junit tests (#5702) 2024-10-12 09:00:12 +03:00
2a167f4bc3 Add tests Sudoku (#5722)
* Add tests Sudoku

* Fix

* Update file

---------

Co-authored-by: Giulio Tantaro <giulio.tantaro@codeploy.it>
Co-authored-by: Alex Klymenko <alexanderklmn@gmail.com>
2024-10-11 22:21:13 +03:00
1c978c52f1 feat: add karatsuba multiplication (#5719)
* feat: add karatsuba multiplication

* fix: fallback size

* fix: big integer instances

---------

Co-authored-by: Alex Klymenko <alexanderklmn@gmail.com>
2024-10-11 14:13:51 +00:00
0ca4398188 feat: Add RandomSearch new algorithm with Junit tests (#5701) 2024-10-11 16:58:34 +03:00
2338428578 Add cipher class, cipher tests, enhance docs in 'AtbashCipher.java' (#5690) 2024-10-11 06:05:26 +00:00
2040df88d9 Add Elliptic Curve Cryptography (#5700) 2024-10-11 05:47:36 +00:00
7326ab2c12 Add Space Optimized Solution to Subset sum problem (#5612) 2024-10-10 20:46:43 +00:00
79544c81eb feat: add solovay strassen primality test (#5692)
* feat: add solovay strassen primality test

* chore: add wikipedia link

* fix: format and coverage

* fix: mvn stylecheck

* fix: PMD errors

* refactor: make random final

---------

Co-authored-by: Alex Klymenko <alexanderklmn@gmail.com>
2024-10-10 23:41:58 +03:00
b1aeac5cd6 Add tests, remove main in UpperBound (#5679) 2024-10-10 20:36:06 +00:00
4ec2701302 Add tests, remove main in TernarySearch (#5677) 2024-10-10 20:32:32 +00:00
6802029251 Add tests, remove main in LinearSearchThread (#5671) 2024-10-10 23:29:20 +03:00
29ad197a64 Add tests, remove main in SaddlebackSearch (#5674) 2024-10-10 23:24:52 +03:00
e8b32513c8 Add tests, remove main in MonteCarloTreeSearch (#5673) 2024-10-10 23:20:39 +03:00
b1724fa737 Add tests, remove main in LinearSearch (#5670) 2024-10-10 23:12:07 +03:00
401d87365e Add tests, remove main in UnionFind (#5678) 2024-10-10 23:07:02 +03:00
fb11d455dd Add tests in SearchInARowAndColWiseSortedMatrix (#5675) 2024-10-10 23:02:13 +03:00
a663e66782 Add tests, remove main in SquareRootBinarySearch (#5676) 2024-10-10 22:57:40 +03:00
38285771c8 Add tests, remove main in JumpSearch (#5669) 2024-10-10 22:51:06 +03:00
f992fc425d Add tests, remove main in IterativeTernarySearch (#5668) 2024-10-10 22:45:26 +03:00
0a7065df38 Add tests, remove main in IterativeBinarySearch (#5667) 2024-10-10 22:41:07 +03:00
ba3d3bf54e Add tests, remove main, improve docs in InterpolationSearch (#5666) 2024-10-10 22:36:38 +03:00
d197fc7df2 Add tests, remove main, improve docs in ExponentialSearch (#5664) 2024-10-10 22:30:37 +03:00
a4e4319126 Add tests, remove main, improve docs in FibonacciSearch (#5665) 2024-10-10 22:26:16 +03:00
ca5fbbf0a9 Add tests, remove main in BinarySearch (#5663) 2024-10-10 22:22:42 +03:00
ac2c88ca9f Add tests, add IllegalArgumentException, remove main in `WineProb… (#5662) 2024-10-10 21:19:37 +03:00
c18dbc43b5 Add tests, add IllegalArgumentException in RodCutting (#5661) 2024-10-10 21:15:35 +03:00