Commit Graph

110 Commits

Author SHA1 Message Date
G.V.AKHIL CHANDRA
4a8357651d
Add DNF sort (#2400) 2021-10-08 19:27:16 +03:00
Manan-Rathi
374938c3f8
Fix typos (#2457) 2021-10-04 20:31:06 +03:00
Du Yuanchao
ea123111d9
fixed merge sort (#2202)
* reformat merge sort

* Formatted with Google Java Formatter

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-05-06 17:49:12 +08:00
github-actions
a8505097a8 Formatted with Google Java Formatter 2021-04-23 17:28:12 +00:00
Hemanth Kotagiri
66adafbff8
Tim sort Algorithm | #2003 (#2110)
* Add Tim Sort implementation in Java

* Add comments and complete implementation of TimSort Algorithm

* Add better docs

* Add @brief's and test method

* Fix errors

* add Test method

* Update Sorts/TimSort.java

Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>

* Update Sorts/TimSort.java

Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>

* Update Sorts/TimSort.java

Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>

* Update Sorts/TimSort.java

Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>

* Update Sorts/TimSort.java

Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>

* Update Sorts/TimSort.java

Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>

* Update Sorts/TimSort.java

Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>

* Update Sorts/TimSort.java

Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>

* Add tests

* Update Sorts/TimSort.java

Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>

* Update Sorts/TimSort.java

* Update Sorts/TimSort.java

Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>

* Update Sorts/TimSort.java

Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>

* Update Sorts/TimSort.java

Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>

Co-authored-by: Ayaan Khan <ayaankhan98@gmail.com>
2021-04-23 22:57:41 +05:30
Du Yuanchao
cebd052c94
selection sort (#2177)
* selection sort

* Formatted with Google Java Formatter

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-04-12 19:16:37 +08:00
Du Yuanchao
d93ee0de2d
udpate insertion sort (#2176)
* udpate insertion sort

* Formatted with Google Java Formatter

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2021-04-12 18:58:24 +08:00
kbrx93
183784b989
Fixes the sort order (#2142) 2021-03-14 09:38:57 +08:00
Du Yuanchao
23c12f7141
Fixed checkstyle and docs (#2035)
* Update bubble sort algorithm

* fixed checkstyle

* Formatted with Google Java Formatter

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-11-18 09:25:05 +08:00
Du Yuanchao
486ebc2635
Update shell sort documentation (#2033) 2020-11-18 08:38:51 +08:00
github-actions
5d59a2e828 Formatted with Google Java Formatter 2020-10-24 10:23:28 +00:00
Du Yuanchao
20d82c544e
Update Sorts/BucketSort.java 2020-09-08 11:46:12 +08:00
shellhub
09a4db6d78 updated BucketSort 2020-09-08 11:33:42 +08:00
shellhub
6da8a00986 BubbleSort Recursion 2020-08-12 00:37:16 +08:00
Stepfen Shawn
0c43428d6d
Merge pull request #1354 from thecoderenroute/master
Fixing errors and warnings
2020-07-06 20:33:32 -05:00
Igor Kvashnin
95389bf9c6 Fixed wrong order in BubbleSort, corrected spelling mistakes 2020-06-30 22:44:38 +03:00
Hardik Kapadia
d07e668091 Fixed <T> parameter error in SelectionSort 2020-06-30 00:17:48 +05:30
Hardik Kapadia
5150a6bd87 Closed Scanner in 3 sum, fixed syntax errors in BucketSort.java 2020-06-30 00:14:04 +05:30
Stepfen Shawn
de85372e10
Merge pull request #1321 from THE-VR7/master
Added Bucket Sort
2020-06-01 12:39:41 +08:00
Stepfen Shawn
88c6ad9787
Merge pull request #1325 from mariaRoxana94/fix-error
Fixed 8XCorrectness_Bugs + 10XBad_Practice_Bugs + 14XDodgy_Code_Bugs
2020-05-28 23:04:56 +08:00
Maria Lungeanu
a5f42e293b Fixed Error:(6, 8) java: class algorithm is public, should be declared in a file named algorithm.java. Inside file PrimeFactorization, the name of public class was wrong. 2020-05-25 00:21:28 +03:00
Vineet Rathor
ed497cec37
Update BucketSort.java 2020-05-23 13:16:09 +05:30
Vineet Rathor
63b9e137ca
Create BucketSort.java 2020-05-22 02:28:42 +05:30
CodingCookieRookie
6818098a32
Update SelectionSort.java
-Used compareTo
-Used a local swap method
2020-05-19 23:53:52 +08:00
Alaa El Bouhdidi
b12aa3d3b8 Add a new sort algorithm, Sort/BitonicSort 2020-05-04 09:46:31 +02:00
littleFoot1
3ef9fe7140
Update ShellSort.java 2020-04-16 21:33:22 +08:00
LittleFoot
338fced4d5 change Sorts/ShellSort.java 2020-04-16 21:31:01 +08:00
EAlexa
c560e72201 remove unnecessary SuppressWarning 2020-04-07 16:37:17 +02:00
Yang Libin
726aab9044
Merge pull request #1202 from shellhub/dev
optimization
2020-01-11 14:39:34 +08:00
shellhub
0ff74ca9f8 optimization 2020-01-11 14:20:09 +08:00
Yang Libin
fc4ec2c443
Merge pull request #1201 from shellhub/dev
optimization
2020-01-10 09:17:20 +08:00
shellhub
dc6f830d07 optimization 2020-01-09 18:28:56 +08:00
valery noname
a6ae951580 fix: removed warning for Sorts 'C-style array declaration of parameter 'array'' 2019-12-30 13:03:14 +07:00
Chase Ganey
3259944dbc
Update BubbleSort.java
Output from print(integers) returns [78, 231, 54, 23, 12, 9, 6, 4, 1]
Correct output should be: [231, 78, 54, 23, 12, 9, 6, 4, 1]
2019-11-23 12:22:27 -05:00
shellhub
8881e9aa4e make code more readable 2019-09-26 10:02:58 +08:00
Guo Ziyang
0821df893a
Update QuickSort.java 2019-07-06 20:56:05 +08:00
CN-GuoZiyang
7cd8552502 Using randomize partition to avoid the basically ordered sequences 2019-07-06 20:54:55 +08:00
yanglbme
b1d4be7f86 docs: update AnyBaseToAnyBase and GenericTree 2019-05-09 20:20:44 +08:00
yanglbme
29948363da docs: update the whole repository
* fix some bugs
* delete duplicate files
* format code
2019-05-09 19:32:54 +08:00
Guo_1_9
21a7b9db58
Update MergeSort.java 2019-01-13 05:13:09 +08:00
varunu28
819b7fd3da Restructured the repo 2018-11-13 09:15:47 -08:00
赵坤
ba57c1d734 reimplement CocktailShakerSort 2018-05-29 19:31:56 +08:00
赵坤
a471c0224b fix error comments 2018-05-29 17:44:14 +08:00
wzx
172998b1ba the second array may have residual elements. 2018-04-26 21:59:35 +08:00
nik
c0020903e2 Added a iterative version of ternary search algorithm and some minor changes in documentation 2018-04-13 09:36:44 +03:00
nik
cf778675df Comb sort was implemented 2018-04-12 10:14:22 +03:00
Christian Bender
f808a2b217
Merge pull request #411 from nikitap492/refactoring
Generalizing & Refactoring
2018-04-11 17:36:12 +02:00
nik
e83317fd89 Added PancakeSort and the other minor changes 2018-04-10 12:48:21 +03:00
nik
e15cfb29b1 Added GnomeSort 2018-04-10 11:32:49 +03:00
nik
18a5148576 Refactored HeapSort 2018-04-10 11:16:28 +03:00