This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import threading | |
import time | |
# Credits to Martmists (Martmists#3740) for counting sort, slow sort, pigeonhole sort, and radix sort code. | |
def bubble_sort(seq): | |
for i in range(len(seq)): | |
for j in range(len(seq)-i-1): | |
if seq[j] > seq[j+1]: |