Commit Graph

52 Commits

Author SHA1 Message Date
Ahmed Khaled
830def0604 feat(guide): added java implementation to quicksort (#36005)
* feat: added java implementation to quicksort

* fix: edited heading in quicksort
2019-07-19 16:13:50 -05:00
Devashish Gupta
1990d26c9a ShellSort Added (#34322)
* ShellSort Added

freeCodeCamp/guide/english/algorithms/sorting-algorithms/ shell-sort/index.md

* Formatted Shell Sort Article

* fix/formatting+grammar

* fix/capitalization
2019-07-08 13:24:32 -05:00
Ronit Ray
0213ee1a13 Rectifying Bubble Sort logic, introducing modification, removing code inconsistency (#30274)
* Update to index.md + code fix

Before this commit, the js and c++ versions of the code had the O(n) modification with the flag but the Java, Python, Swift ones did not. Also, Bubble sort is originally O(n^2) for all cases and the flag is a modification to it, as far as I know. I updated the code to reflect the same in the first section, and added a new section explaining the modification with examples in 3 languages. Hope this is alright.

* fix: corrected code block syntax
2019-06-27 14:39:47 -07:00
chrisgithubok
3e175e52b3 added ruby bubble_sort example (#33907)
* added ruby bubble_sort example

* fix: corrected code block syntax

* fix: fixed typo and used 2 space indentation
2019-06-27 13:20:31 -07:00
P Karthik Chowdary
850512c2ab Added an implementation code in python (#33305) 2019-06-25 13:42:43 -07:00
Aditya Oli
c9d00827c4 Added MergeSort Implementation in Java (#28042)
* Added MergeSort Implementation in Java

* fix: changed c++ to cpp
2019-06-25 10:53:35 -07:00
Randell Dawson
2b553d31b6 fix replace code block with blockquote 2019-06-25 16:57:43 +08:00
Randell Dawson
22f52296bc fix: replace c++ with cpp for language postfix 2019-06-25 16:57:43 +08:00
Mahmud031
57d66ef6df Added merge-sort in MATLAB (#27783)
* Added merge-sort in MATLAB

* fix: changed c++ to cpp
2019-06-24 19:02:26 -07:00
Faizan Ahmad
787729c910 Updated Properties of Merge Sort (#27052)
* Updated Properties of Merge Sort

Added the advantage of Merge Sort in linked lists over Quick Sort.

* fix: correct code block syntax
2019-06-24 15:54:45 -07:00
Sameer Bhardwaj
fa7043e135 Completed c++ implemetation (#25547)
* Completed c++ implemetation

c++ implementation contained only merge function(by the name of merge sort). Completed the implementation by providing both divide and merge functions.

* fix: add triple backticks for c# code

* fix: changed csharp to cpp
2019-06-24 15:35:00 -07:00
King Josaphat Chewa
d6f641ec34 Update index.md (#32810) 2019-05-22 18:14:04 -05:00
Randell Dawson
0a1eeea424 fix(guide) Replace invalid prism code block names (#35961)
* fix: replace sh with shell

fix replace terminal with shell

fix replace node with js

fix replace output with shell

fix replace cs with csharp

fix replace c++ with cpp

fix replace c# with csharp

fix replace javasctipt with js

fix replace syntax  with js

fix replace unix with shell

fix replace linux with shell

fix replace java 8 with java

fix replace swift4 with swift

fix replace react.js with jsx

fix replace javascriot with js

fix replace javacsript with js

fix replace c++ -  with cpp

fix: corrected various typos

fix: replace Algorithm with nothing

fix: replace xaml with xml

fix: replace solidity with nothing

fix: replace c++ with cpp

fix: replace txt with shell

fix: replace code with json and css

fix: replace console with shell
2019-05-15 19:08:19 +02:00
Himanshu Patel
2ed6bc9831 Minor grammatical corrections. (#31228) 2019-05-11 21:44:41 +05:30
Ayush Jain
128f8b3cbc Added Swift Implementation of Counting Sort (#35719) 2019-05-06 06:48:11 -05:00
Manish Giri
220c982d52 fix(guide): Fix C++ selection sort algo (#35546) 2019-04-23 09:48:42 -07:00
Kaustubh J
7b51ec6487 Update index.md (#32513)
Added python code and mentioned randomized pivot
2019-04-21 14:16:14 -07:00
Mahmud031
229bec9a4b Added quick-sort in MATLAB (#27823) 2019-04-21 09:24:43 -07:00
Lipis
e84ae45008 Javascript -> JavaScript (English) (#35183)
* Javascript -> JavaScript (English)

* Update technical documentation page for required change

* Update use-class-syntax-to-define-a-constructor-function.english.md

* Update left-factorials.md
2019-03-28 14:05:41 +05:30
King Josaphat Chewa
a415c2055b Better use of "let" (#32800) 2019-03-25 20:44:06 -07:00
mridul981
1827f993d2 Added java implementation of merge sort (#23993)
* Added java implementation of merge sort

* fix: changed to two space indentation
2019-03-24 21:33:48 +05:30
Saurav Bajracharya
534a484003 Grammar corrections (#32486) 2019-03-21 00:51:58 +05:30
Kabir Hossain
9f3e196574 bubble sort example in php added (#24929)
* bubble sort example in php added

* bubble sort example in php completed (#3)

bubble sort example in php completed
2019-03-01 16:48:53 -07:00
isha2812
caf6d3446f added recursive implemenation in c++ in index.md (#26218)
* added recursive implemenation in c++ in index.md

* fix: formatting/syntax highlighting
2019-02-24 10:17:31 -07:00
Kaustubh J
359a776425 Update index.md (#32427)
Explained the space and time complexity of counting sort
2019-02-19 19:24:29 -08:00
Ankit Sharma
6994353c99 docs: Update guide of counting sort implementation heading add specific language(#26859) (#29407) 2019-02-19 18:50:50 -08:00
ngutierrez31
1b4122cfef Updated index.md: C++ implementation for count sort (#26609)
* Update index.md

Added a C++ implementation to count sort using std::vector

* fix: added code block syntax
2019-02-19 18:49:13 -08:00
King Josaphat Chewa
e360c8d627 Fix typo, line 46 (#32806) 2019-02-13 19:37:35 -08:00
kellyhuang21
0aa4d109d0 Added sentence on comparisons (#30208) 2019-02-13 19:36:54 -08:00
Nathan-Abegaz
3b9ae3d786 Best/Average/Worst Case Details (#23956)
* Best/Average/Worst Case Details

* Added list formatting
2019-02-13 02:46:58 -05:00
Arunangshu Biswas
ebf657912e Emphasized the element comparison in the example (#25506)
In the example I've emphasized the element pair which are being compared. This will provide an intuitive visual cue just by looking at the example. It kind of shows the bubble effect.
2019-01-15 15:59:28 -05:00
fun831
d4a4aba44d SortingAlgorithms index.md (#29019)
* Update index.md

Additional information added about the trade-offs of speed vs resources used.

* fix typo's

add 't' to algorihms
change 's' to 'c' in resourses
2019-01-14 19:41:03 -06:00
Himanshu27299
32e615055e Minor grammatical corrections. (#31232) 2019-01-14 19:29:33 -06:00
Ruchika Salwan
e2daa47404 Updated Class name as per convention (#25937) 2018-12-21 00:55:56 -05:00
Harsh Aggarwal
fee86fa371 Changed python code of bubble sort (#24217)
Changed python code of bubble sort - instead of using two functions, one function is used and all we need to do is to write the driver code and call the function and it will result in a sorted list(or array)
2018-12-19 02:13:42 -05:00
Nathan-Abegaz
e4a6eb891c Information about stability and heap requirement. (#23895)
* Information about stability and heap requirement.

* Clarified confusing statement
2018-12-11 18:39:52 -05:00
Achint Srivastava
b939a3f915 Added the code for Selection Sort in Java Language (#23465)
* Added the code for Selection Sort in  Java Language

* fix: code block formatting
2018-12-04 17:28:38 -06:00
Achint Srivastava
643bfa5dba Added the code for Bubble sort in C language (#23389)
* Added the code for Bubble sort in C language

* fix: code formatting and added additional code
2018-12-03 21:43:10 +05:30
Rajat Bhatt
01ae4e25a1 Improve python version of merge sort. (#23005) 2018-12-02 14:59:26 +09:00
mridul981
0c5b28e0e5 Added java implementation of merge sort (#22581) 2018-11-27 12:15:41 -08:00
Muhammed Kilig
804132b43b Added VisuAlgo link on Sorting to bottom of page (#21162)
<!-- Please follow this checklist and put an x in each of the boxes, like this: [x]. It will ensure that our team takes your pull request seriously. -->

- [x] I have read [freeCodeCamp's contribution guidelines](https://github.com/freeCodeCamp/freeCodeCamp/blob/master/CONTRIBUTING.md).
- [x] My pull request has a descriptive title (not a vague title like `Update index.md`)
- [x] My pull request targets the `master` branch of freeCodeCamp.
- [x] None of my changes are plagiarized from another source without proper attribution.
- [x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.

Closes #XXXXX
2018-11-26 00:48:18 -05:00
Manvender Singh Rathore
dff64a339d Quick Sort Complexity Table (#22056)
* Quick Sort Complexity Table
2018-11-18 01:26:59 -08:00
manishbhatt151
382913ab84 Provided link to Youtube playlist of Sorting Algorithms (#22093) 2018-11-17 22:29:09 -06:00
Charlie van Rantwijk
03cdc70b6c add "more info" link to original HE site (#22081)
It seems this article is copied almost word for word from the added link, therefor a link to the original page should be added.
2018-11-17 22:08:46 -06:00
Charlie van Rantwijk
8e4512648b several grammatical and sentence structural fixes (#22224)
Also changed the first line as Insertion Sort isn't the most efficient sorting algorithm and isn't necessarily the simplest.
2018-11-17 05:14:15 -05:00
S.Hale
3920b7c4ce Corrected capitalization, corrected to American spellings and typos (#30685)
* Translate challenge subtitles and example challenge text to Spanish

* Corrected errors in syntax and punctuation

* Multiple corrections of it/s to its plus other grammar corrections

* Correction and added paragraph to CSS Flex article

* Corrected my own typo

* Corrected capitalization, American spellings and typos
2018-11-07 10:34:13 -05:00
Ha Anh Nguyen
8d0ca1729d Summarize time complexity of merge sort (#20632)
Add simple way to remember time complexity of merge sort
2018-10-31 14:16:56 -07:00
Ha Anh Nguyen
ad6eed1ef3 Add explanation about various time complexity (#20565)
Explaining the why time complexity of quick sort varies
2018-10-31 08:12:17 -07:00
Ha Anh Nguyen
8c4ead7998 Add special cases where bubble sort is reasonable (#20527)
I added more specific explanations when bubble sort is used
2018-10-30 22:20:10 -05:00
Manish kumar chaurasia
22481b1fcc updated code of selection sort in this article (#20058) 2018-10-28 14:23:50 +11:00