194 Commits

Author SHA1 Message Date
cf0be7e3e4 Improved Implementation Presentation | CombSort 2021-01-23 22:27:19 +05:30
1c497661fd Added Wikipedia link | CombSort 2021-01-23 22:25:43 +05:30
db246025a3 Formatted main Comment | CombSort 2021-01-23 22:25:06 +05:30
2acff23fdd improved comments and algo description 2020-12-30 11:01:24 +05:30
a3e6c4c69e formatted implementation 2020-12-25 23:57:21 +05:30
c67a570c45 improved doctests presentation 2020-12-22 23:58:40 +05:30
339e2102f9 Merge pull request #547 from criskolonas/master
Added pigeonhole sorting
2020-12-19 22:02:13 +05:30
2f5504ed64 more changes 2020-11-25 21:41:30 +02:00
7aa0a66ea5 changes 2020-11-25 21:36:55 +02:00
8c928ad565 added PigeonHoleSort algorithm 2020-11-25 21:31:27 +02:00
9b8bd417d4 added PigeonHoleSort algorithm 2020-11-25 21:25:36 +02:00
4a040c38ac added PigeonHoleSort algorithm 2020-11-25 21:18:10 +02:00
d4ede60e3c added PigeonHoleSort algorithm 2020-11-25 21:13:41 +02:00
38760ff5c4 added PigeonHoleSort algorithm 2020-11-25 21:10:50 +02:00
d44ffef467 Cocktail Shaker Sort | Fixed 'standard' warnings and errors 2020-11-02 15:32:45 +05:30
8d1278b455 Cocktail Shaker Sort | Added Doctests 2020-11-02 15:26:47 +05:30
aab8a555fc Cocktail Shaker Sort | Improved Implementation 2020-11-02 15:26:21 +05:30
ac488fe626 Cocktail Shaker Sort | Code wasn't returning sorted Items. Changed that. 2020-11-02 15:25:59 +05:30
3a7da23b02 Cocktail Shaker Sort | Improved Comments 2020-11-02 15:25:09 +05:30
5dbb739fd0 Cocktail Shaker Sort | Formatted Wikipedia Link 2020-11-02 15:24:09 +05:30
aad3c4d151 Cocktail Shaker Sort | Improved Description Comment 2020-11-02 15:23:39 +05:30
6c2f83b752 Add doctest for QuickSort and MergeSort (#502)
* Add doctest for QuickSort

* Add doctest for MergeSort

Co-authored-by: Sukhpreet Sekhon <ssekhon@atb.com>
2020-10-24 21:03:55 +05:30
554abf7126 Add Bead Sort (aka Gravity Sort) Algorithm (#388)
* add BeadSort.js

* add BeadSort to directory

* run npx standard & fix linter issues

* add bead sort implementation w/ console.log()
2020-10-12 01:11:45 +05:30
01de72959b Improved BubbleSort and added Doctests (#443)
* BubbleSort | using alternativeBubbleSort() in it's implementation
2020-10-09 22:58:41 +05:30
05d48b8ff9 Fix selection sort and add tests; fixes #414 (#418)
* Fix selection sort and add tests; fixes #414 
Co-authored-by: vinayak <itssvinayak@gmail.com>
2020-10-05 23:33:52 +05:30
7e0aff1685 Added JSDoc documentation to some sorting functions and added TimoSort (#406)
* Added TimSort
Co-authored-by: Solot Paul <solotpaul@yahoo.ro>
Co-authored-by: vinayak <itssvinayak@gmail.com>
2020-10-05 22:15:14 +05:30
a019404353 Added Introsort Implementation in JS. (#267)
* Feature: Added IntroSort in JS Closes #265

* updating DIRECTORY.md

Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
2020-08-19 11:57:41 +05:30
1f429e6119 OddEvenSort Added 2020-08-03 10:57:36 +03:00
412995ac09 Added Web-Programming (Open Weather Maps data fetch) (#196)
* Added Web-Programming (Open Weather Maps data fetch)

* update

Co-authored-by: itsvinayak <itssvinayak@gmail.com>
2020-06-21 22:08:29 +05:30
b2f6471b89 feat: adjust swap grammar (#175)
* feat: adjust swap grammar

* fix: grammar
2020-05-23 11:31:41 +05:30
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
0b544c66c5 Added Sleep Sort 2019-10-21 23:13:16 +05:30
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