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:
Manan Rathi
2021-10-20 14:12:32 +05:30
committed by GitHub
parent 83cf5786cd
commit 50485f7c8e
6 changed files with 18 additions and 19 deletions

View File

@@ -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: