63 Commits

Author SHA1 Message Date
050f56b190 Add doctest to BucketSort.js 2020-05-13 01:27:55 +02:00
f59062ae1a Ready for review 2020-05-13 00:50:23 +02:00
66391ca209 Ensure that build fail on bad test 2020-05-13 00:47:49 +02:00
02585f5d12 BogoSort.js: Simplify Array.isSorted() and add doctests
As discussed at https://github.com/TheAlgorithms/Javascript/issues/164#issuecomment-627437233

Also related to add doctests as discussed in #142
2020-05-12 22:21:36 +02:00
ce07a8ba33 Quick Select Search (#131)
* HeapSort algorithm

* Create QuickSelect.js

* Algorithm to reverse a string.

* Update ReverseString.js

* Update Heapsort.js

* Update QuickSelect.js

Co-authored-by: vinayak <itssvinayak@gmail.com>
2020-05-07 20:57:23 +05:30
7ff6b8716f editing file names 2020-05-06 21:07:49 +05:30
6507cbf7d4 sort/ 2020-05-05 17:41:32 +05:30
622ad9e41f sorts/ 2020-05-04 11:58:44 +05:30
f74a3aef1f Merge branch 'master' into master 2020-05-03 20:17:33 +05:30
856dc2f63c npx standard --fix 2020-05-03 09:05:12 +02:00
95bba0b0ea update (#1)
* Graph Theory

* Delete Graphs

* Graph

* Dijkstra Smallest Path

* DijkstraSmallestPath

after fixing some errors.

* Topological Sort 

directed graphs

* correcting name of file

* updating DIRECTORY.md

* doublylinkedlist

* add-doublylinkedlist

* add-doublylinkedlist

* change in Directory.md

* updating DIRECTORY.md

Co-authored-by: Nur69 <60115902+Nur69@users.noreply.github.com>
Co-authored-by: Stepfen Shawn <m18824909883@163.com>
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
Co-authored-by: hmizz <hamza.chabchoub@medtech.tn>
2020-05-03 01:03:10 +05:30
0b411b93c0 correcting name of file 2020-04-21 10:18:32 +02:00
9fe41bb219 Topological Sort
directed graphs
2020-04-19 17:10:25 +02:00
71bbd07836 Merge pull request #88 from PatOnTheBack/master
Improved JSLint Compliance and Created Math Algorithms
2019-08-07 18:33:05 +08:00
f37cac8508 Fixed Whitespace, Operators, and Quotes to Comply with JSLint
I modified the whitespace in the files and changed single quotes to double quotes.

I also changed some `==` and `!=` operators to `===` and `!==` to comply with JSLint.
2019-06-27 10:41:44 -04:00
d582ccfc9f Added Semicolon to Avoid Auto Semicolon Insertion
This fixes a [recommendation on lgtm](9fe2ca0492/files/Sorts/bucketSort.js)
2019-06-26 21:23:46 -04:00
4b47c0661b Add wiggle sort 2019-04-25 21:58:03 +05:30
7b82729d7e Merge pull request #64 from KuLi/bucket_sort
Implemented bucket sort algorithm
2018-10-23 10:49:45 +05:30
9f7639e498 Merge pull request #74 from KuLi/cycleSort
Implemented cycle sort algorithm
2018-10-23 09:43:08 +05:30
7a814932a4 Implemented cycle sort algorithm 2018-10-22 19:27:31 +02:00
348919a066 Added Missing declaration 2018-10-19 13:07:13 +05:30
120947a7ca Merge pull request #65 from KuLi/combSort
Implemented comb sort algorithm
2018-10-18 20:57:20 +05:30
3afb902885 Implemented comb sort algorithm 2018-10-18 16:58:37 +02:00
9cd9b16bee Implemented bucket sort algorithm 2018-10-17 19:23:59 +02:00
b96bab7fe1 Added Declaration for Local Variable 2018-10-16 19:11:21 +05:30
7bd9840773 feat: add flashsort
Related: #14
2018-10-14 00:16:51 +03:00
81bd46c18c feat: add counting sort
Related: #14
2018-10-14 00:15:49 +03:00
78860e0b33 Merge pull request #56 from christianbender/changed_heapSort
added let-statment
2018-03-31 00:02:01 +02:00
969902a73d added let-statment 2018-03-31 00:01:22 +02:00
f39a99998f Merge pull request #55 from christianbender/changed_gnomeSort
added the let-statment
2018-03-30 23:46:41 +02:00
1c835b4ab2 added the let-statment 2018-03-30 23:45:36 +02:00
370361ad48 Merge pull request #52 from christianbender/changed_bogoSort
fixed a leak and added the let-statement
2018-03-30 23:41:18 +02:00
f6c35bd6d2 Merge pull request #53 from christianbender/fixed_cocktailShakerSort
fixed the function cocktailShakerSort and added the let-statment.
2018-03-30 23:41:08 +02:00
18349287d1 added the let-statment and fixed a leak. 2018-03-30 23:40:08 +02:00
c83b680311 fixed two leaks 2018-03-30 23:37:47 +02:00
3367dc1b17 fixed the function cocktailShakerSort and added the let-statment. 2018-03-30 23:30:43 +02:00
c977d81dd7 fixed a leak and added the let-statement 2018-03-30 23:19:43 +02:00
4f2361cb91 Merge pull request #26 from Panzki/radixSort
Added radixsort algorithm.
2017-10-18 18:31:28 +05:30
28343d2cc3 add console printing for after sorting 2017-10-16 13:05:33 +01:00
9dbf000df7 add additional implementation using a while loop for educational purposes 2017-10-16 12:56:02 +01:00
0551dbab37 remove changes made on adding alternative implementation of bubble sort 2017-10-16 12:47:45 +01:00
6de559d0e9 add alternative implementation of bubble sort using a while loop 2017-10-16 12:03:41 +01:00
5742bf5009 add to bubble sort information about big O complexity and efficiency 2017-10-16 11:23:46 +01:00
29d252e8e6 fix typo in bubble sort descriptiion 2017-10-16 09:24:30 +01:00
a7a192ad08 Fixed a bug in the radix sort algorithm, that would sort the indexes of the passed array instead of the actual array items. 2017-10-10 12:30:58 +02:00
daa37ba33f Merge pull request #22 from KuLi/cocktailShakerSort
Implemented cocktail shaker sort algorithm
2017-10-07 12:12:22 +05:30
df96740f5d Implemented cocktail shaker sort algorithm 2017-10-07 08:31:14 +02:00
36d777846e Merge pull request #20 from KuLi/shellSort
Implemented shell sort algorithm
2017-10-05 11:52:46 +05:30
2f362c9cbd Merge pull request #21 from KuLi/gnomeSort
Implemented gnome sort algorithm
2017-10-05 11:41:29 +05:30
1d676b1c24 Merge pull request #23 from Panzki/heapSort
Added heapsort algorithm.
2017-10-05 11:28:24 +05:30