Sorting and Selection Algorithms with Python 3

All You Need to Know

PDF explains the sorting and selection algorithms, including

  • Insertion Sort
  • Bubble Sort
  • Selection Sort
  • Merge Sort
  • Quick Sort
  • Quick Select
  • Bucket Sort
  • Counting Sort
  • Radix Sort

We not only provide the Python implementation for each sorting algorithm but also explain how to use Python 3 comparison operators, functions such as max , list.sort() , sorted() in the most comprehensive way.

Source code: Algorithms implementation

Source code: Python 3 Comparison and sorting methods

For more, check out




Sharing methods to solve questions on leetcode, trying to systematize different types of questions

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Li Yin

Li Yin AI consulting and freelancing. Ex AI researcher@ Meta AI. Github:

More from Medium

LeetCode Patterns Adventure 22 — Same Tree

Basic Data Structure and Algorithms in Python

Sorting Algorithms Explained Using Python: Bucket Sort

Glass Cube and Dots

[LeetCode] 461. Hamming Distance