Skip to content

Commit 32a66ca

Browse files
committed
created links to mergesort in primary README file
1 parent dd9097d commit 32a66ca

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Mergesort/README.markdown

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@ This method is quite straightforward:
116116

117117
2. This is the merged array. It's empty right now, but you'll build it up in subsequent steps by appending elements from the other arrays.
118118

119-
3. This while loop will compare the elements from the left and right sides to make sure that the result stays in order.
119+
3. This while loop will compare the elements from the left and right sides, and append them to the `orderedPile` while making sure that the result stays in order.
120120

121-
4. If control exits from the previous while loop, it means that either `leftPile` or `rightPile` has it's contents completely merged into the `orderedPile`. At this point, you no longer need to do comparisons. Just append the rest of the contents of the other array until there's no more to append.
121+
4. If control exits from the previous while loop, it means that either `leftPile` or `rightPile` has it's contents completely merged into the `orderedPile`. At this point, you no longer need to do comparisons. Just append the rest of the contents of the other array until there's no more to append.
122+
123+
## See Also
124+
125+
See also [Wikipedia](https://en.wikipedia.org/wiki/Merge_sort)
126+
127+
*Written by Kelvin Lau*

README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Basic sorts:
5656
Fast sorts:
5757

5858
- [Quicksort](Quicksort/)
59-
- Merge Sort
59+
- [Merge Sort](Mergesort/)
6060
- Heap Sort
6161

6262
Special-purpose sorts:

0 commit comments

Comments
 (0)