sorts.pigeonhole_sort

Functions

main()

pigeonhole_sort(a)

Module Contents

sorts.pigeonhole_sort.main()
sorts.pigeonhole_sort.pigeonhole_sort(a)
>>> a = [8, 3, 2, 7, 4, 6, 8]
>>> b = sorted(a)  # a nondestructive sort
>>> pigeonhole_sort(a)  # a destructive sort
>>> a == b
True