Commit Graph

28 Commits

Author SHA1 Message Date
Strange Developer
df0c997e4b General performance improvement (#6078) 2024-11-01 19:52:42 +02:00
Giulio Tantaro
e6f70634a4 Cleanup combination and combination test (#5902) 2024-10-26 18:39:23 +00:00
Hardik Pawar
32bf532133 refactor: Enhance docs, add more tests in ArrayCombination (#5841) 2024-10-15 08:59:16 +00:00
Hardik Pawar
ecd75c0c2e Add CrosswordSolver algorithm (#5626) 2024-10-08 21:00:02 +03:00
Hardik Pawar
435532fb7b Add WordPatternMatcher algorithm (#5627) 2024-10-08 20:45:17 +03:00
Hardik Pawar
676d451aa6 Add class documentation, improve comments in MazeRecursion.java (#5576) 2024-10-07 19:47:29 +03:00
Hardik Pawar
fa7d357451 Add tests, enhance class & function documentation for KnightsTour (#5591) 2024-10-07 16:06:59 +03:00
Hardik Pawar
dab8ff3d1d Improve comments in Mcoloring.java (#5484) 2024-10-02 16:46:34 +03:00
Alex Klymenko
44d7cbbaf4 test: NQueensTest (#5378) 2024-08-24 11:27:39 +03:00
yuvashreenarayanan3
f83bb659ba refactor: redesign ArrayCombination (#5181)
* Related to #5164 (Redesign of ArrayCombination)

* Checkstyle fix

* Clang_format

* refactor: cleanup

---------

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
Co-authored-by: vil02 <vil02@o2.pl>
2024-07-10 19:20:32 +02:00
Alex K
2568b96784 Adding class for generating all subsequences from a given List (#5194)
* Adding class for generating all subsequences from a given List

* Fix test data format

* Fix braces wrong placement

* Fix "Utility classes should not have a public or default constructor."

* Fix checkstyle " Class Subsequence should be declared as final."

* Renaming class Subsequence to SubsequenceFinder. Refactored test to Parametrized test. Fixed input parameter as final.

* Fix formatting

* Fix formatting

* Fix formatting

* Fix import ordering

* Renaming method generate all.
Renaming test method.
Adding duplication test.
Renaming TestData to TestCase.

* Fix formatting

* style: add assertion to avoid potential infinite loop

---------

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
2024-05-30 18:43:15 +00:00
Piotr Idzik
414835db11 style: enable AvoidStarImport in checkstyle (#5141) 2024-05-05 20:48:56 +02:00
SOZEL
c53f178308 Implement Parentheses Generator (#5096)
* chore: add `ParenthesesGenerator` to `DIRECTORY.md`

* feat: implement Parentheses Generator

* ref: change `ParenthesesGenerator`s method to `static`

* ref: use parametrized tests

* ref: handling exception when `n < 0`

* chore: update docstrings

* ref: make `ParenthesesGenerator` to be a proper utility

* chore(docs): add private constructor docstring

* ref(tests): move bad name suggestions

* style: remove reduntant comments

---------

Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com>
2024-04-05 18:41:27 +02:00
Manan Solanki
a88abb7ac2 Fix : Floodfill infinite recursion due to same color (#4359)
Fix : Floodfill infinite recursion due to same color
2023-09-09 20:07:59 +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
Bama Charan Chhandogi
1ef5208b75 Add M-coloring Problem (#4282)
Co-authored-by: BamaCharanChhandogi <b.c.chhandogi@gmailcom>
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
Co-authored-by: Debasish Biswas <debasishbsws.abc@gmail.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2023-08-05 22:00:26 +03:00
acbin
415a04ea7f Add automatic linter (#4214) 2023-06-09 20:05:14 +08:00
acbin
00282efd8b style: format code (#4212)
close #4204
2023-06-09 18:52:05 +08:00
Anirudh Pathak
0255705388 Add WordSearch (#4189) 2023-05-12 22:44:16 +03:00
Saurabh Rahate
1dc388653a Refactor Code Style (#4151) 2023-04-15 11:25:54 +03:00
Enrique Clerici
a7e76c57a0 feat: Backtracking algorithms (All combinations) #3912 (#3917)
* ArrayCombination function which uses Combination.java by creating an array of 1 to n

* modified tests
2023-03-11 02:59:49 +05:30
Siddhant Swarup Mallick
f3613382aa Add All Paths from Source to Target (fixes #3359) (#3873) 2023-02-28 12:46:17 +02:00
laks-mi1099
ea05286c86 Add tests for PowerSum (#3603) 2022-10-22 19:11:40 +00:00
acbin
e96f567bfc Format code with prettier (#3375) 2022-10-03 17:23:00 +08:00
HManiac74
e87e097f06 Cleanup unused imports (#3217) 2022-08-17 08:30:15 +03:00
Ong Lip Wei
d63813e0a2 Add maze recursion algorithm (#3204) 2022-08-08 20:47:04 +03:00
Nikhil Bisht
260a302563 Fix bound checks in flood fill (fixes #2836) (#2974) 2022-03-12 11:56:43 +02:00
cpiao3
12c67bc501 Add permutations and combinations (#2932) 2022-02-09 20:57:14 +02:00