Fix typos in Sorts and Bit_manipulation (#4949)
* Fix several typos * Update bit_manipulation/README.md Co-authored-by: John Law <johnlaw.po@gmail.com> * Update double_sort.py Co-authored-by: John Law <johnlaw.po@gmail.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
def double_sort(lst):
|
||||
"""this sorting algorithm sorts an array using the principle of bubble sort,
|
||||
but does it both from left to right and right to left,
|
||||
hence i decided to call it "double sort"
|
||||
"""This sorting algorithm sorts an array using the principle of bubble sort,
|
||||
but does it both from left to right and right to left.
|
||||
Hence, it's called "Double sort"
|
||||
:param collection: mutable ordered sequence of elements
|
||||
:return: the same collection in ascending order
|
||||
Examples:
|
||||
|
||||
Reference in New Issue
Block a user