9eaa2bb756
style: enable MultipleVariableDeclarations
in checkstyle ( #5175 )
...
Co-authored-by: vaibhav <vaibhav.waghmare@techprescient.com>
2024-05-25 20:18:27 +02:00
44ce6e7b0d
style: enable StaticVariableName
in checkstyle ( #5173 )
...
* style: enable StaticVariableName in checkstyle
* Refractored: enable StaticVariableName in checkstyle
* style: mark more variables as `final`
---------
Co-authored-by: vaibhav <vaibhav.waghmare@techprescient.com>
Co-authored-by: vil02 <vil02@o2.pl>
2024-05-25 14:09:14 +00:00
bf9d0ed66a
fix: handle constant inputs in `LongestIncreasingSubsequence::findLISLen' ( #5160 )
...
fix: handle constant inputs in `LongestIncreasingSubsequence::findLISLen`
2024-05-17 15:24:22 +05:30
0f42e995a4
style: enabled InnerAssignment
in checkstyle ( #5162 )
...
* style: enabled InnerAssignment in checkstyle
* Refactor code formatting in KnapsackMemoization.java and UnionFind.java
* style: remove redundant blank line
* style: mark `includeCurrentItem` and `excludeCurrentItem` as `final`
* style: remove `KnapsackMemoization` from `pmd-exclude.properties`
* style: use `final`
---------
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
2024-05-16 16:46:03 +00:00
cf6c87c35c
style: make SubsetCount
a proper utility ( #5153 )
2024-05-11 14:36:17 +00:00
d3bb691f59
style: enable HideUtilityClassConstructor
in checkstyle ( #5147 )
2024-05-08 09:58:29 +03:00
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
1e2d7e9431
style: enable ConstantName
in checkstyle ( #5139 )
...
Co-authored-by: Maria Paszkiewicz SCC <maria.paszkiewicz@kit.edu>
2024-05-02 18:31:37 +02:00
2513ccd62b
style: include IM_AVERAGE_COMPUTATION_COULD_OVERFLOW
( #5131 )
2024-05-01 15:28:04 +05:30
22310defcd
Cleaned up code for some packages ( #5094 )
...
* Cleaned up code of some packages
---------
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
2024-04-02 21:26:06 +02:00
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
1518e84fb9
Add Tribonacci Numbers ( fixes #4646 ) ( #4959 )
2023-11-26 13:34:13 +02:00
c527dff92d
Add Javadoc comments ( #4745 )
2023-11-11 22:55:48 +02:00
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
9d8a0f36cf
Optimize MinimumPathSum ( #4400 )
2023-09-25 14:25:16 +00:00
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
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
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
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
2488a2ad51
Code cleanup ( #4246 )
2023-07-22 15:23:00 +00:00
415a04ea7f
Add automatic linter ( #4214 )
2023-06-09 20:05:14 +08:00
00282efd8b
style: format code ( #4212 )
...
close #4204
2023-06-09 18:52:05 +08:00
3109c11c59
Add Partition Problem ( #4182 )
2023-05-09 13:21:11 +03:00
7ed65b0a1e
Add climbing stairs ( #4168 )
2023-04-28 20:34:15 +03:00
1dc388653a
Refactor Code Style ( #4151 )
2023-04-15 11:25:54 +03:00
0c618b5ee8
Refactoring ( #4146 )
2023-04-14 08:34:47 +00:00
ad72c28d91
Remove unnecessary code ( #4141 )
2023-04-03 22:35:59 +08:00
e0b1235bef
Fix ArrayIndexOutOfBoundsException in LevenshteinDistance ( #3871 )
2023-02-15 20:34:36 +00:00
c0fec8dfe2
Add Optimal Job Scheduling ( #3868 )
2023-02-08 18:09:38 +00:00
260f1b2bee
Remove duplicate KnapsackMemoization ( #3769 )
2022-11-19 13:32:01 +02:00
23eec39a29
Fibonacci optimized using binet's formula ( #3728 )
...
* Fibonacci optimized using binet's formula
* Update Fibonacci.java
* Update Fibonacci.java
* updated changes
Co-authored-by: Debasish Biswas <debasishbsws.abc@gmail.com>
2022-10-30 09:26:08 +05:30
b2393d62a0
Add Test case for EggDropping ( #3687 )
2022-10-27 20:52:45 +03:00
8d4b048cb3
Add LongestValidParenthesesTest ( #3612 )
2022-10-22 19:21:54 +00:00
3ef3d761c6
Add DP Solution to Subset Count ( #3580 )
2022-10-20 19:51:54 +00:00
e96f567bfc
Format code with prettier ( #3375 )
2022-10-03 17:23:00 +08:00
3ebba74e04
Fix some typos ( #3038 )
2022-04-28 21:09:25 +08:00
060069cf73
Add Golomb Sequence ( fixes #2889 ) ( #2991 )
2022-04-06 19:02:30 +03:00
260a302563
Fix bound checks in flood fill ( fixes #2836 ) ( #2974 )
2022-03-12 11:56:43 +02:00
cf07de8afa
Add Newman–Shanks–Williams prime ( #2884 ) ( #2955 )
...
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2022-02-26 09:54:10 +02:00
2cb4c2fff4
Add unique paths ( fixes #2873 ) ( #2943 )
...
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2022-02-19 13:59:14 +02:00
0a062d4616
Add tests for Kadane algorithm ( #2877 ) ( #2939 )
...
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2022-02-13 20:24:31 +02:00
6be3c99399
Add Boundary Fill Algorithm ( #2822 )
...
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2021-11-15 07:39:42 +02:00
1f17076571
Add Flood Fill Algorithm Implementation ( #2821 )
...
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2021-11-14 10:03:17 +02:00
9fb3364ccc
Change project structure to a Maven Java project + Refactor ( #2816 )
2021-11-12 08:59:36 +02:00