Placements roadmap
Stacks, queues and linked lists
Pointer juggling and LIFO or FIFO order: short questions that test whether you can code carefully. 2 topics, about 10 hours.
Stacks and queues
About 5 h.
- Check balanced brackets and convert infix to postfix
- Use a monotonic stack for next-greater-element questions
- Build a queue from two stacks
Visualisers: Stacks & queues
Linked lists
About 5 h.
- Reverse a list in place, iteratively and recursively
- Find the middle and detect a cycle with fast and slow pointers
- Merge two sorted lists
Visualisers: Linked lists