1868 Commits

Author SHA1 Message Date
00282efd8b style: format code (#4212)
close #4204
2023-06-09 18:52:05 +08:00
ad03086f54 Remove main and add tests for CountWords (#4210) 2023-06-02 16:28:33 +00:00
22002c9939 Generalize NthUglyNumber (#4209) 2023-06-02 14:17:26 +03:00
4bbc4bd69f Refactor ReverseNumber (#4208) 2023-05-31 09:07:55 +03:00
b6e78a45ac Add Octal To Binary Converter (#4202) 2023-05-30 07:37:50 +00:00
5d7a59654f Refactor LowestBasePalindrome (#4207) 2023-05-29 23:05:23 +03:00
96c1a96647 Fix empty input handling in FindMax (#4206) 2023-05-28 23:45:13 +03:00
4f15149804 style: handle empty input array in FindMin.findMin (#4205)
* tests: add test case with mininum not being at the beginning

* style: throw IllegalArgumentException when input is empty

* style: use enhanced for loop

* docs: update doc-str
2023-05-28 16:38:44 +05:30
e14b30b88c Fix empty input handling in GCD (#4199) 2023-05-27 17:58:56 +03:00
36232a8373 Fix typo (#4197) 2023-05-23 09:38:44 +03:00
9ce275c16d Update FibonacciNumber.java (#4195) 2023-05-21 11:08:54 +05:30
deef2ae445 Refactor CreateBinaryTreeFromInorderPreorder (#4190) 2023-05-14 14:52:30 +03:00
0255705388 Add WordSearch (#4189) 2023-05-12 22:44:16 +03:00
de2696d0c5 Add Null/Empty check for param in average method (#4185) 2023-05-10 19:30:41 +03:00
122f5e5556 Add Round Robin scheduling (#4184) 2023-05-10 16:04:55 +03:00
3109c11c59 Add Partition Problem (#4182) 2023-05-09 13:21:11 +03:00
3a593d5d3c Cover BSTRecursive with tests (#4180) 2023-05-06 21:10:33 +03:00
89b7ee42e6 Add one more solution for anagrams check (#4175) 2023-05-05 20:50:47 +03:00
bb830e9559 Add tests for TwoSumProblem and reduce duplication (fixes #4177) (#4176) 2023-05-02 20:03:21 +03:00
fb18c27905 Add wiki link for DES (#4173) 2023-04-30 22:22:19 +03:00
19bd2408ff Des (#4172)
* Update directory

* Add DES Encryption algorithm

* Update directory

---------

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2023-04-30 20:19:14 +05:30
db9c78a598 Remove duplicated ThreeSum problem (fixes #4169) (#4170) 2023-04-29 10:17:00 +03:00
7ed65b0a1e Add climbing stairs (#4168) 2023-04-28 20:34:15 +03:00
b55fc972ac Add tests for HorspoolSearch (#4165) 2023-04-25 14:04:15 +03:00
f69cd7cfa2 Remove redundant code and add tests for BSTIterative (#4164) 2023-04-24 14:52:38 +03:00
4c18e60671 Refactor BSTFromSortedArray (#4162) 2023-04-22 07:53:12 +00:00
c01a382d94 Remove redundant tree traversals (#4161) 2023-04-21 11:41:24 +03:00
1551b8f50b Add line sweep algorithm (#4157) 2023-04-19 08:12:30 +00:00
1dc388653a Refactor Code Style (#4151) 2023-04-15 11:25:54 +03:00
1ce907625b Fix NullPointer Exception (#4142) 2023-04-15 11:10:39 +03:00
0c618b5ee8 Refactoring (#4146) 2023-04-14 08:34:47 +00:00
d241fafd64 Remove blinking test for BufferedReader (#4153) 2023-04-14 11:33:22 +03:00
8259f0e9cf Add Majority Element (#4131) 2023-04-13 15:28:36 +03:00
181906d5f7 Refactor Code (MemoryManagementAlgorithms): Pull Up Variable (#4145) 2023-04-12 15:18:49 +00:00
7779c18ef6 Add More Tests (#4148) 2023-04-08 19:56:07 +03:00
f35e9a7d81 Update SieveOfEratosthenes.java (#4149) 2023-04-07 20:50:43 +08:00
8798e042a8 Refactor BinaryToDecimal class (#4135) 2023-04-03 22:42:50 +08:00
d160156003 Update AbsoluteMax (#4140) 2023-04-03 22:39:17 +08:00
ad72c28d91 Remove unnecessary code (#4141) 2023-04-03 22:35:59 +08:00
805f09850c Update SortUtils (#4139) 2023-04-02 23:09:51 +08:00
acfa2890a4 Fix DIRECTORY.md formatting (closes #3922) (#4124) 2023-04-01 21:43:47 +03:00
3b2ca81765 Fix spelling in Volume (#3893) 2023-03-24 19:22:56 +00:00
86c93146d9 Add Run-Length Encoding (fixes #3911) (#3916) 2023-03-19 09:51:48 +02:00
0b6fa5c3b8 Remove old Gitter chat 2023-03-18 10:09:06 +02:00
3a56c963b3 Change Python version for directory workflow from 3.10 to 3.x to use newer and faster language versions (#3921) 2023-03-18 10:03:32 +02:00
2418604f7a Add tests for SinglyLinkedList (#3913) 2023-03-12 13:49:17 +02:00
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
b6563cf37a Add Buffered Reader (#3910) 2023-03-07 10:13:46 +02:00
3e9dd776e5 Make LinkedQueue generic (#3909) 2023-03-05 19:08:42 +00:00
dd949e9b5d Increase test coverage (fixes #3895 #3896) (#3897) 2023-03-05 21:03:08 +02:00