Commit Graph

301 Commits

Author SHA1 Message Date
Sedat Aybars Nazlica
d8c9c1ac85
Add Hamming Distance (#3164) 2022-06-23 09:29:08 +03:00
gkgaurav31
e572354976
Fix off-by-one mistake in MinHeap.java (#3162) 2022-06-23 09:27:21 +03:00
Hai Nguyen
c0b2c56628
Add tests for PasswordGen (#3163) 2022-06-23 09:23:11 +03:00
Akshay Dubey
2a2c575c89
Add LFU Cache (#3161) 2022-06-22 19:31:24 +03:00
Artem Boiarshinov
d14a5d1eed
Fix SkipList remove operation (#3160) 2022-06-22 21:56:35 +08:00
Artem Boiarshinov
e59568bc5e
Add Skip List (#3154) 2022-06-21 10:41:22 +03:00
Akshay Dubey
22be348c54
Add algorithm to find Hamiltonian cycle (#3151) 2022-06-20 21:07:41 +03:00
Ankush263
6472d33092
Add heaps folder (#3150)
Co-authored-by: Yang Libin <szuyanglb@outlook.com>
2022-06-20 21:04:13 +03:00
BI11-061 Hoàng Anh Đức
678ec396fc
Add tests for isPerfectSquare (#3131) 2022-06-15 19:19:27 +03:00
Ankush263
4ccb9f460f
Fix the folder structure (#3141) 2022-06-14 21:31:50 +08:00
Hai Nguyen
a33a26a9d1
Cover CheckAnagrams with tests (#3124) 2022-06-14 10:50:50 +03:00
Jonathan Taylor
6c4092a46b
Add Topological Sorting Algorithm (#3060)
Co-authored-by: thanhtri122002 <thanhnt122002@122002>
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
Co-authored-by: Anh Pham <62592224+anhpham197@users.noreply.github.com>
Co-authored-by: SanOtaku <SanOtaku098@gmail.com>
Co-authored-by: Raghav Taneja <97575679+RaghavTaneja@users.noreply.github.com>
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
Co-authored-by: Hai Nguyen <88832724+ntquanghai@users.noreply.github.com>
Co-authored-by: Utkarsh Yadav <Utkarshrock1510@gmail.com>
Co-authored-by: Phạm Minh Hiếu <84634830+Ph1eu@users.noreply.github.com>
Co-authored-by: nguyenviettrung-bi11276 <101244039+nguyenviettrung-bi11276@users.noreply.github.com>
Co-authored-by: TaiNguyen2001 <102779475+TaiNguyen2001@users.noreply.github.com>
Co-authored-by: de <88503943+HuyQHoang@users.noreply.github.com>
Co-authored-by: thanhtri122002 <93241140+thanhtri122002@users.noreply.github.com>
Co-authored-by: thanhtri122002 <thanhnt122002@122002>
2022-06-11 21:53:33 +03:00
Artem Boiarshinov
ec1ab53eea
Reduce memory usage of bloom filter (#3115) 2022-06-10 20:44:23 +03:00
Quốc Thái Vũ
ba3c0319ed
Add tests for sum of digits (#3083) 2022-06-09 09:50:16 +03:00
Squirrellllllllllll
8982692ca6
Add tests for factorial (#3107) 2022-06-09 09:47:31 +03:00
thanhtri122002
45f3e5b6de
Add a test for average (#3084)
Co-authored-by: thanhtri122002 <thanhnt122002@122002>
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2022-06-08 18:19:42 +03:00
de
77e481336e
Add test for Armstrong (#3104)
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2022-06-08 18:15:01 +03:00
TaiNguyen2001
9b4ac70403
Add more tests for findMin (#3102)
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2022-06-07 08:21:46 +03:00
nguyenviettrung-bi11276
8e8d11a63c
Add Tests for FindMin (#3079) 2022-06-04 19:49:37 +03:00
Phạm Minh Hiếu
2fb87c37fc
Add tests for PythagoreanTriple (#3070) 2022-06-02 17:21:40 +03:00
Utkarsh Yadav
2bcae52dce
Rename CPUalgorithms to MemoryManagmentAlgorithms (#3071) 2022-05-31 16:12:59 +03:00
Hai Nguyen
e5057defa7
Add tests for findMax (#3067) 2022-05-30 14:11:30 +03:00
Raghav Taneja
bb5b50dea2
Add Z-Score Algorithm (#3065)
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2022-05-29 11:16:04 +03:00
SanOtaku
2e09e44a38
Add ZigZag Encoding and Longest Nonrepetitive Substring Algorithms (#3058) 2022-05-26 12:47:23 +03:00
Anh Pham
f35eef285a
Add tests for GCD and PrimeCheck (#3062) 2022-05-25 13:46:20 +03:00
Sahil Parekh
550adb2287
Fix Bug in Tim Sort (#3050)
Co-authored-by: Sahil Prafulkumar Parekh <sh883193@dal.ca>
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2022-05-20 20:19:18 +03:00
Akshay Dubey
f9b788f7f4
Add Blowfish Algorithm (#3052) 2022-05-18 20:29:31 +03:00
Raghav Taneja
239b274069
Add Euclidean Distance Formula (#3047) 2022-05-11 22:23:56 +03:00
Siddhant Swarup Mallick
10f41eeee9
Add max of mins algorithm (#3044) 2022-05-08 12:05:05 +03:00
Omar
f272d8a949
Add Bloom Filter (#3042) 2022-05-04 09:24:19 +03:00
Omar
00c758a299
Add Fibonacci Heap (#3037) 2022-05-02 18:56:05 +03:00
RaghavTaneja
c52b2a649c
Add Standard Deviation (#3039) 2022-05-01 10:32:03 +03:00
Omar
1a230bd61e
Add New Prime Check (#3036) 2022-04-29 16:30:05 +03:00
Shuangchi He
3ebba74e04
Fix some typos (#3038) 2022-04-28 21:09:25 +08:00
RaghavTaneja
41be089f6a
Add Tests for Heron's Formula (#3035) 2022-04-28 10:40:13 +03:00
BranAndSceolan
dfdce96c6e
Add Dutch National Flag Sort (#3025)
Co-authored-by: Antonia Strack <antonia.strack@thm.mni.de>
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2022-04-25 17:02:15 +03:00
BranAndSceolan
99ff5163e3
Add Wigglesort (#3032)
Co-authored-by: Antonia Strack <antonia.strack@thm.mni.de>
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2022-04-25 16:54:33 +03:00
Samir M'Sallem
7c31c5bada
Add else clause for node (#3014)
Co-authored-by: Samir M'Sallem <samir.msallem@valtech-mobility.com>
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2022-04-22 19:50:04 +03:00
Yadunandan Bhat
64f1e51df4
Add pigeonhole sort (fixes #2992) (#3013) 2022-04-21 15:35:27 +03:00
Cristiano Jesus
1320748c88
Code refactor for AbsoluteMin improvements (#3031)
Fix #3030

Co-authored-by: Yang Libin <szuyanglb@outlook.com>
2022-04-21 09:34:40 +08:00
Cristiano Jesus
c8b0a201da
Code refactor for AbsoluteMax improvements (#3029)
Fix #3028

Co-authored-by: Yang Libin <szuyanglb@outlook.com>
2022-04-21 09:33:29 +08:00
Cristiano Jesus
9f7613b467
Code refactor for AliquotSum improvements (#3027)
Fix #3026
2022-04-21 09:31:55 +08:00
Cristiano Jesus
4b15b2c021
Code refactor for ADTFraction improvements (#3016)
Fix #3015

Co-authored-by: Yang Libin <szuyanglb@outlook.com>
2022-04-20 16:20:47 +08:00
Cristiano Jesus
5eed0849ef
Code refactor for AbsoluteValue improvements (#3018)
Fix #3017

Co-authored-by: Yang Libin <szuyanglb@outlook.com>
2022-04-20 16:17:44 +08:00
Cristiano Jesus
64b624efb2
Code refactor for AbsoluteMax improvements (#3020)
Fix #3019

Co-authored-by: Yang Libin <szuyanglb@outlook.com>
2022-04-20 16:15:30 +08:00
Cristiano Jesus
02375e0683
Code refactor for AbsoluteMin improvements (#3022)
Fix #3021
2022-04-20 16:12:55 +08:00
Vivek
719e1d8132
Update Armstrong Number (#2981) 2022-04-10 17:11:05 +03:00
Siddhant Swarup Mallick
060069cf73
Add Golomb Sequence (fixes #2889) (#2991) 2022-04-06 19:02:30 +03:00
acbin
ab544c3b9f
Fix Null Pointer Exception in strings/Upper (#3005)
Co-authored-by: Yang Libin <contact@yanglibin.info>
2022-04-05 17:02:20 +08:00
acbin
e7ff986414
Fix CheckVowels (#3004)
Close #2990
2022-04-04 16:44:38 +08:00
Aldo Telese
8d099ee7d1
Update Anagrams and add unit test (#3002)
* Add test for Anagrams
* Update Anagrams.java

Co-authored-by: Yang Libin <contact@yanglibin.info>
2022-04-04 16:34:27 +08:00
Aldo Telese
140f6ec6e3
Add test for Upper (#3001) 2022-04-04 16:21:53 +08:00
Aldo Telese
1b02b41fcc
Add test for Palindrome (#2993) 2022-04-03 16:19:24 +03:00
funCodeSonali
77bcd4daa3
Fix singly linked list (#2988) 2022-04-03 16:11:43 +03:00
Aldo Telese
63f486c6ba
Add tests for CharacterSame (#2989) 2022-03-31 20:54:48 +03:00
RishabhSrivastava1423
d53c2cef8c
Modify singly linked list swap function to swap nodes (#2983) 2022-03-26 21:31:11 +02:00
Aldo Telese
7d5de041eb
Test alphabetical (#2987) 2022-03-24 08:03:36 +02:00
Aldo Telese
8b71a15cbb
Add test for Pangram.java (#2986) 2022-03-23 22:34:50 +02:00
Rushipatel0995
1d5d672fbd
Refactor to remove code smells (#2982)
Co-authored-by: Rushi <rs397441@dal.ca>
2022-03-21 20:35:11 +02:00
rameez471
4da27429c4
Add Largest Rectangle Problem (fixes #2916) (#2971) 2022-03-14 23:19:42 +02:00
XU ZHIWEI
a01be023e1
Add find kth element in an array (#2968) 2022-03-12 11:59:34 +02:00
Nikhil Bisht
260a302563
Fix bound checks in flood fill (fixes #2836) (#2974) 2022-03-12 11:56:43 +02:00
leren1
49a4a83ada
Refactor and add tests (fixes #2963) (#2964) 2022-03-10 19:56:26 +02:00
H1manshu-$oni
f0b52022e8
Fix spelling (#2973) 2022-03-08 17:46:01 +02:00
Nikhil Bisht
1ac1a5a6a5
Add Postfix to Infix using Stack (fixes #2339) (#2970) 2022-03-06 08:59:45 +02:00
leren1
fe61eb2bdf
Fix rounding in FFT (fixes #2961) (#2962) 2022-03-05 19:16:34 +02:00
leren1
8bf74929e3
Refactor algorithm & add Junit test (fixes #2959) (#2960) 2022-03-04 18:25:42 +02:00
Siddhant Swarup Mallick
cf07de8afa
Add Newman–Shanks–Williams prime (#2884) (#2955)
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2022-02-26 09:54:10 +02:00
Changjiyuan
68e2ba29d4
Fix typos (fixes #2941) (#2948) 2022-02-20 10:11:41 +02:00
Siddhant Swarup Mallick
2cb4c2fff4
Add unique paths (fixes #2873) (#2943)
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2022-02-19 13:59:14 +02:00
ZiQiang Cao
a30f08b8b2
Fix typo (#2950) 2022-02-18 21:58:22 +02:00
Siddhant Swarup Mallick
0a062d4616
Add tests for Kadane algorithm (#2877) (#2939)
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2022-02-13 20:24:31 +02:00
alexlemo20
adadb2f6d6
Unify dynamic memory allocation algorithms (#2935) 2022-02-10 19:08:21 +02:00
cpiao3
12c67bc501
Add permutations and combinations (#2932) 2022-02-09 20:57:14 +02:00
Saumya
101d08ae24
Add Square Root by Babylonian Method (#2883) 2022-01-30 20:49:32 +02:00
Suraj Kumar
e4fa83bd29
Add select random tree node algorithm (#2906)
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2022-01-21 21:20:11 +02:00
Siddhant Swarup Mallick
857c4aafb2
Add linked list sorting (#2882)
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2022-01-19 21:35:43 +02:00
Kabir
76fbe7c9e9
Update LongestPalindromicSubstring - Remove ; (#2905)
Removing unnecessary semi-colon ';'

Co-authored-by: Yang Libin <szuyanglb@outlook.com>
2022-01-13 09:59:11 +08:00
Subhro Acharjee
ab9f74c2ee
Add BigInteger to karprekar number (#2899)
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2022-01-12 22:23:53 +02:00
ArunPrasanth-V
2a27d09a17
Update PascalTriangleTest (#2900)
* Update in indentation to makes code more readable

Co-authored-by: Yang Libin <szuyanglb@outlook.com>
2022-01-11 14:56:59 +08:00
Vɪɴᴀʏᴀᴋ Pᴀɴᴅᴇʏ
5c7c6c4702
Add volume of prism and pyramid (#2902) 2022-01-10 17:36:37 +08:00
Subhro Acharjee
a0a392297e
Add kaprekarNumberInRange (#2894)
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2022-01-07 21:50:32 +02:00
Subhro Acharjee
549a27a327
Add bruteforce to the caesar cipher (#2887) 2022-01-01 23:16:53 +02:00
Akshay Dubey
32cdf02afb
Add Pronic Number (#2867)
* Add Pronic Number

* Update directory

* Add unit tests for Pronic Number implementation

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2021-12-21 22:06:16 +02:00
s-devran
98656cb0cd
Add Kaprekar Numbers (#2881) 2021-12-15 16:55:04 +02:00
Hardik Soni
b1242e045b
Add Pascal's Triangle (#2871)
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2021-12-13 22:04:19 +02:00
sangin-lee
734f7a4a04
Add Array Left Rotation (#2869) 2021-12-11 18:54:12 +02:00
Siddhant Swarup Mallick
0bb7db2d87
Add anagrams (#2859)
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2021-12-09 20:47:45 +02:00
Nils-Goldmann
66d8d51de6
Add Quick Select (#2860)
Co-authored-by: Nils Goldmann <goldman09@mi.fu-berlin.de>
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2021-12-08 21:38:19 +02:00
Mohit Kumar
1f50c40e5d
Add Next Greater and Next Smaller Elements using Stack (#2858) 2021-12-06 22:07:26 +02:00
Suraj Kumar
bc6de37a53
Add RandomNode in lists section (#2851)
Co-authored-by: Yang Libin <contact@yanglibin.info>
2021-11-30 10:22:01 +08:00
Yang Libin
b870de4db4
Fix formatting in Juggler Sequence (#2846) 2021-11-27 12:55:32 +02:00
Akshay Dubey
2954ed2ab1
Add Juggler Sequence (#2845)
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2021-11-26 19:39:14 +02:00
Louve Le bronec
e488b7b5bb
Add Happy Numbers (#2839)
Co-authored-by: Louve Le Bronec <loane.le.bronec@eisti.fr>
Co-authored-by: Yang Libin <contact@yanglibin.info>
Co-authored-by: Yang Libin <szuyanglb@outlook.com>
2021-11-26 19:35:35 +02:00
R_juzi
fb3cec06a1
Fix a bug in A_Star.Graph in jdk17 (#2842)
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2021-11-24 10:29:38 +02:00
FyZhu97
6c00beec90
Fix NoClassDefFoundError exception (#2838)
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2021-11-23 08:55:24 +02:00
Akshay Dubey
1869eab042
Add binomial coefficients (#2835) 2021-11-22 15:22:15 +02:00
Sachwin Kohli
fe7e5d842c
Add author (#2831)
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-11-20 11:46:15 +02:00
Akshay Dubey
6be3c99399
Add Boundary Fill Algorithm (#2822)
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2021-11-15 07:39:42 +02:00
Akshay Dubey
1f17076571
Add Flood Fill Algorithm Implementation (#2821)
Co-authored-by: Andrii Siriak <siryaka@gmail.com>
2021-11-14 10:03:17 +02:00
Aitor Fidalgo Sánchez
9fb3364ccc
Change project structure to a Maven Java project + Refactor (#2816) 2021-11-12 08:59:36 +02:00