108 Commits

Author SHA1 Message Date
ca4c1a62af style: Fixed most styles (according to standardjs) 2021-05-21 11:16:11 +05:30
d43de686c5 Add FindSecondLargestSort (#523)
* Add FindSecondLargestSort

* Add FindSecondLargestSort

* Add FindSecondLargestSort

* Add FindSecondLargestSort

* Add FindSecondLargestSort

* Add FindSecondLargestSort

* Update and rename FindSecondLargestSort.js to FindSecondLargestElement.js

* Update FindSecondLargestElement.js

* Update FindSecondLargestElement.js

Co-authored-by: MacBookPro <macbookpro@MacBookPros-MBP.attlocal.net>
Co-authored-by: vinayak <itssvinayak@gmail.com>
2021-04-03 19:59:58 +05:30
c10cb8c839 Standard fixes | Flash Sort 2021-02-01 21:02:15 +05:30
32cc94ee18 Changed implementation presentation | Flash Sort 2021-02-01 21:01:00 +05:30
72e173c2d4 Improved main description comment | Flash Sort 2021-02-01 20:59:59 +05:30
9decf7bc7f Standard fixes | Cycle Sort 2021-01-25 23:52:47 +05:30
1626a58b35 Improved presentation of Implementation | Cycle Sort 2021-01-25 23:51:55 +05:30
d866534031 Added Wikipedia link | Cycle Sort 2021-01-25 23:51:09 +05:30
9515badb75 Improved main Description comment | Cycle Sort 2021-01-25 23:50:46 +05:30
6c916966d6 Standard formatting fixes | Counting Sort 2021-01-24 23:34:56 +05:30
e0260015cb Improved Implementation presentation | Counting Sort 2021-01-24 23:34:22 +05:30
e6e6648eaf Improved main description comment | Counting Sort 2021-01-24 23:33:15 +05:30
028c16999c Replaced use of var with const | Bogo Sort 2021-01-24 23:31:18 +05:30
b61d6020a1 Replaced use of var with const | Bubble Sort 2021-01-24 23:30:20 +05:30
bf3d37a974 Added animated visual link | Bubble Sort 2021-01-24 23:29:50 +05:30
ddbebe483d Standard Fixes | CombSort 2021-01-23 22:28:41 +05:30
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
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