Two weeks to your coding interview

DSA for Coding Interviews. A two-week plan: Big O, arrays, hash maps, linked lists, trees, recursion and graphs.

27 lessons · 1 hr 19 min of video · 11 quiz questions

Big O Notation Explained Visually | Time & Space Complexity for Beginners, by ByteFramed

Try a question from this course

Which sort is O(n log n) in both best and worst case?

What you'll be able to do

  • Name the time and space complexity of code
  • Choose between arrays, hash maps and linked lists
  • Traverse trees and graphs with a queue, stack or recursion
  • Write backtracking and binary search
  • Recognize which pattern fits a new problem

What's in it

  1. Days 1–2: Big O

    Learn to name how much work code does as the input grows. Every later day uses this.

    1. Watch the seven growth classes
    2. Judge loops by total work
    3. Day 2: Classify code on paper
    4. Recap
  2. Days 3–4: Arrays and hash maps

    Why index reads are instant, why middle inserts are slow, and how a hash map turns a nested loop into one pass.

    1. Learn what arrays make cheap and costly
    2. Understand hash tables and collisions
    3. Solve Two Sum in one pass
    4. Recap
  3. Days 5–6: Linked lists

    Nodes and pointers, what they make cheap, and the fast/slow pointer trick interviews love.

    1. Trace how nodes link together
    2. Decide between an array and a linked list
    3. Use fast and slow pointers
    4. Recap
  4. Days 7–8: Stacks, queues and trees

    Two ordering rules, then trees: level by level with a queue, and the three depth-first orders.

    1. Tell a stack from a queue
    2. Traverse a tree level by level
    3. Trace inorder, preorder and postorder
    4. Recap
  5. Days 9–10: Recursion and sorting

    Halving and splitting: binary search, merge sort, quick sort, then recursion that tries choices and undoes them.

    1. Binary search a sorted list
    2. Compare merge sort and quick sort
    3. Write recursion that undoes its choices
    4. Recap
  6. Days 11–13: Graphs

    Nodes and edges, two traversals that differ only in stack vs queue, and the visited set that keeps cycles from looping forever.

    1. Trace depth-first and breadth-first traversal
    2. Add a visited set so cycles end
    3. Count components and find shortest paths
    4. Recap
  7. Day 14: Patterns and mock interview

    Match a fresh problem to a tool, then practice explaining it.

    1. Match problem shapes to tools
    2. Run a mock interview
    3. Recap

Made from these videos

More courses