Commit Graph

61 Commits

Author SHA1 Message Date
Hardik Pawar
196cc60982 Add AllConstruct algorithm (#5791) 2024-10-26 14:40:17 +00:00
PANKAJ PATWAL
efb16c1eff Add edge case to handle negative rod length in RodCutting algorithm (#5904) 2024-10-22 17:50:47 +00:00
Hardik Pawar
33dee073d0 Add AssignmentUsingBitmask algorithm (#5792) 2024-10-16 15:16:32 +03:00
Hardik Pawar
2a518e3c9a Add Abbreviation algorithm (#5790) 2024-10-15 18:55:27 +03:00
PANKAJ PATWAL
e38611e9db Optimize and Format Knapsack Memoization Algorithm (#5685) 2024-10-12 07:11:25 +00:00
Hardik Pawar
138793df1d Improve docs, remove main, add tests for `MatrixChainRecursiveTopDo… (#5659) 2024-10-12 09:51:41 +03:00
Rupa
7326ab2c12 Add Space Optimized Solution to Subset sum problem (#5612) 2024-10-10 20:46:43 +00:00
Hardik Pawar
ac2c88ca9f Add tests, add IllegalArgumentException, remove main in `WineProb… (#5662) 2024-10-10 21:19:37 +03:00
Hardik Pawar
c18dbc43b5 Add tests, add IllegalArgumentException in RodCutting (#5661) 2024-10-10 21:15:35 +03:00
Hardik Pawar
41f7e6aa9d Add tests, improve docs in NewManShanksPrime (#5660) 2024-10-10 21:11:43 +03:00
Guhapriya Dharmaraj
44b0fc9408 Implement Maximum Sum of Non-Adjacent Elements (#5544) 2024-10-10 21:07:44 +03:00
Hardik Pawar
e728aa7d6f Add tests, remove main, enhance docs in MatrixChainMultiplication (#5658) 2024-10-10 20:16:04 +03:00
Hardik Pawar
c0f35242a1 Add tests, remove print & main methods in BoundaryFill.java (#5640) 2024-10-09 22:56:51 +03:00
Hardik Pawar
029dd85646 Add tests, enhance docs in KadaneAlgorithm.java (#5646) 2024-10-09 22:36:00 +03:00
Hardik Pawar
ce9f42081d Add tests, remove main, add negativity test in Fibonacci.java (#5645) 2024-10-09 22:20:45 +03:00
Hardik Pawar
4a0e46dae6 Add tests, remove main in DiceThrow/DP.java (#5644) 2024-10-09 22:16:20 +03:00
Hardik Pawar
6ddb26f48d Add tests, remove main & print methods in CoinChange.java (#5642) 2024-10-09 22:04:04 +03:00
Hardik Pawar
0603accfd4 Add tests, remove main method, improve docs in BruteForceKnapsack (#5641) 2024-10-09 11:09:36 +03:00
Hardik Pawar
49a87d3b58 Add tests for CountFriendsPairing (#5643) 2024-10-09 10:08:16 +03:00
Tuhinm2002
0d68b655d2 feat : new dp algo added UniqueSubsequenceCount.java (#5586)
* 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

---------

Co-authored-by: Alex Klymenko <alexanderklmn@gmail.com>
2024-10-08 10:55:34 +03:00
Hardik Pawar
f34fe4d840 Enhance comments & improve readability in LongestCommonSubsequence.java (#5523) 2024-10-05 15:43:42 +03:00
Tejaswi Tyagi
be8df2188c Adds Longest Arithmetic Subsequence Implementation (#5501)
* Added LongestArthmeticSubsequence

---------

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
2024-10-03 15:04:49 +02:00
Alex Klymenko
b0de93b3ce refactor: change packages (#5430)
* refactor: change package

* refactor: fix name

---------

Co-authored-by: alxkm <alx@alx.com>
2024-08-30 11:58:24 +02:00
Alex Klymenko
f8ff6af893 refactor: BoardPath (#5431)
refactor: BoardPath

Co-authored-by: alxkm <alx@alx.com>
2024-08-30 10:12:31 +02:00
Alex Klymenko
cd38531b0d refactor: SubsetSum (#5432)
* refactor: SubsetSum

* checkstyle: fix formatting

---------

Co-authored-by: alxkm <alx@alx.com>
2024-08-30 09:55:18 +02:00
Alex Klymenko
203d544668 test: LongestValidParenthesesTest (#5416)
* test: LongestValidParenthesesTest

* checkstyle: fix formatting

---------

Co-authored-by: alxkm <alx@alx.com>
2024-08-28 20:56:58 +02:00
Alex Klymenko
7d1847f51c refactor: PalindromicPartitioning (#5419)
refactor: PalindromicPartitioning

Co-authored-by: alxkm <alx@alx.com>
2024-08-28 20:53:00 +02:00
Alex Klymenko
c413f3c6b2 refactor: LongestPalindromicSubstring (#5420)
* refactor: LongestPalindromicSubstring

* checkstyle: fix formatting

---------

Co-authored-by: alxkm <alx@alx.com>
2024-08-28 18:35:21 +02:00
Alex Klymenko
7674a84f5b test: RegexMatchingTest (#5403)
* test: RegexMatchingTest

* checkstyle: fix formatting

---------

Co-authored-by: alxkm <alx@alx.com>
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2024-08-26 17:22:39 +03:00
Alex Klymenko
b70f077343 refactor: ShortestCommonSuperSequenceLength (#5394) 2024-08-26 11:50:12 +03:00
Alex Klymenko
be6b0d835b test: EditDistanceTest (#5397) 2024-08-26 09:48:30 +03:00
Alex Klymenko
6edc009765 test: LongestAlternatingSubsequenceTest (#5399) 2024-08-26 09:37:00 +03:00
Alex Klymenko
e1d8b6f8a7 refactor: FordFulkerson (#5384) 2024-08-25 10:07:02 +03:00
StarDxxx
a81fb32e6c style: enable TypeName (#5214)
* style: enable `TypeName` in checkstyle

* style: enable `TypeName` in checkstyle

* Update directory

* style: use proper formatting

---------

Co-authored-by: StarDxxx <StarDxxx@users.noreply.github.com>
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
2024-06-08 13:37:20 +02:00
S. Utkarsh
25d711c5d8 style: enable LocalVariableName in CheckStyle (#5191)
* style: enable LocalVariableName in checkstyle

* Removed minor bug

* Resolved Method Name Bug

* Changed names according to suggestions
2024-05-28 20:29:28 +02:00
Godwill Christopher
295e7436b1 style: enable MethodName in CheckStyle (#5182)
enabled: MethodName in CheckStyle
2024-05-27 09:06:06 +02:00
Piotr Idzik
bf9d0ed66a fix: handle constant inputs in `LongestIncreasingSubsequence::findLISLen' (#5160)
fix: handle constant inputs in `LongestIncreasingSubsequence::findLISLen`
2024-05-17 15:24:22 +05:30
Piotr Idzik
cf6c87c35c style: make SubsetCount a proper utility (#5153) 2024-05-11 14:36:17 +00:00
Piotr Idzik
d2ddec55e5 style: include NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION (#5149)
* style: use `assertFalse` and `assertTrue`

* style: include `NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION`
2024-05-08 22:41:46 +05:30
Piotr Idzik
414835db11 style: enable AvoidStarImport in checkstyle (#5141) 2024-05-05 20:48:56 +02:00
SOZEL
dda3c9cb59 Refactor Levenshtein distance implementation (#5138)
* ref: refactor Levenshtein distance implementation
- Rewrite the original levenshtein distance implementation in functional style
- Add optimized version of levenshtein distance

* ref: make `LevenshteinDistance` class a proper utility

* ref: remove duplicated test data

* ref: update tests

---

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
2024-05-04 11:13:30 +02:00
Bhishmadev Ghosh
55f08cc013 Add tests SumOfSubset (#5021)
* Updated main and test

* removed

* style: reorder test cases

---------

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
2024-01-26 19:30:26 +01:00
Doksanbir
1518e84fb9 Add Tribonacci Numbers (fixes #4646) (#4959) 2023-11-26 13:34:13 +02:00
Janmesh Singh
566c27a996 WildcardMatching Added (#4404)
* Added WildcardMatching DP

* Wildcard Matching update

* Updated WildcardMatching

* Added WildcardMatchingTests

* WildcardMatching update

* Clang-formatting done

* WildcardMatching_Clang-formatting done

* WildcardMatching
2023-09-27 12:54:52 +03:00
Manan Solanki
9d8a0f36cf Optimize MinimumPathSum (#4400) 2023-09-25 14:25:16 +00:00
Manan Solanki
8803b1ead5 #4387 Enhance Minimum sum partition problem implementation (#4394)
* Enhance Minimum sum partition problem implementation

* Linter resolved

* Linter resolved

* Code review comments

* Code review comments

* Add validation for non-negative numbers

* Linter resolved

* style: fix formiatting

---------

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
2023-09-23 10:26:14 +02:00
Manan Solanki
12b6c29243 #4367 Enhance Knapsack problem (#4368)
* Enhance Knapsack problem

* Linter solved

* Linter solved

* Remove DynamicProgrammingKnapsack file, duplicate of Knapsack file

* Add null input testcase

* Linter resolved

* Updated meaningful test names

* Add check for negative weightCapacity

* Linter resolved

* Linter resolved

* Add check for non-positive weight

* Linter resolved

* fix: use proper formatting

* fix: use proper formatting

* fix: use proper formatting (I hope this will work now)

Sorry for the previous mess.

* Code review comments

* Code review comments

* Code review comments

* Code review comments

---------

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
2023-09-19 19:53:53 +00:00
Manan Solanki
5bb54977fe #4369 Enhance UniquePaths (#4373)
* Enhance UnquiePaths DP problem solution

* Update testcases

* Linter issue resolved

* Code review comments

* Code review comments

* Code review comments

* Code review comments

---------

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
2023-09-14 19:45:16 +02:00
Piotr Idzik
f010a47608 chore: enforce InsertNewlineAtEOF in clang-format (#4343)
* style: insert newline at eof

* style: use `InsertNewlineAtEOF` in `clang-format`

* fix: use `clang-format-16`

* chore: update clang-format-lint-action to v0.16.2

---------

Co-authored-by: Debasish Biswas <debasishbsws.dev@gmail.com>
2023-09-01 04:10:46 +00:00
ngominhtrint
4effd28d80 Add unit tests for Minimum Path Sum algorithm (#4233)
* Add unit tests for Minimum Path Sum algorithm

* fix lint issues

* fix lint issues

* fix clang lint issue
2023-07-09 22:54:00 +05:30