Sitemap

Recent posts

Stack & Queue

less than 1 minute read

Stack and circular queue pseudocode with overflow/underflow checks and wrap-around logic

Bucket Sort

2 minute read

Bucket sort for roughly uniform inputs, with insertion sort per bucket and runtime notes

Radix Sort

1 minute read

Radix sort from least-significant digit upward, and why stability is required

Decision Tree

less than 1 minute read

Decision trees for comparison sorts, and why comparison sorting needs Ω(n log n)

Counting Sort

2 minute read

Stable counting sort in Θ(n+k), with pseudocode and Scala/Python implementations