Skip to content
ignitae
Academy
Algorithms in JavaScript
Binary search, a two-stack queue, merge sort and grid BFS, hand-written and tested.
Syllabus
Searching
Binary search: cut the search space in half
Binary search (exercise)
Stacks and queues
Building a queue out of stacks
Queue from two stacks (exercise)
Sorting
Merge sort: divide, conquer, merge
Merge sort (exercise)
Graphs
BFS on a grid: shortest path, one layer at a time
Grid shortest path (BFS) (exercise)