This is a playground with common CS algorithms. The goal is to have simple implementations focused on comprehension. It's updated from time to time, currently it includes:
- Dijkstra's algorithm for shortest path on a 2d grid
- Red–black binary search tree info
- Sorting
- Interesting tasks from the "Cracking the Coding Interview"
- Is it a power of 2?
- 8.10 Paint Fill
- 16.1 Number Swapper
- 16.23 Rand7 from Rand5
- 17.1 Add Without Plus
- 17.2 Shuffle
- 17.3 Random Set
- 17.4 Missing Number
- 17.9 Kth Multiple
- 17.14 Smallest K (Selection Rank Algorithm)
- 17.19 Missing Two
Also, here is a list of my favorite leetcode problems.