Genai Applied
Sign in Get my playbook

Track 02 · Data Structures

2.2 Non-linear Structures

16 topics in 3 parts. Use it as a checklist before an interview, or as a map of what to learn next.

  • CCritical
  • HHigh
  • MMedium
  • NNew 2026

01Binary Trees & BST8 topics

  • Types: complete, full, perfect, balancedH
  • DFS: preorder, inorder, postorder (recursive + iterative)C
  • BFS: level-order traversal with queueC
  • Height, diameter, max depth, path sumC
  • Lowest Common Ancestor (LCA) — O(n) and O(log n) BSTC
  • BST: search O(h), insert O(h), validate (min/max bounds)H
  • AVL trees — concept, rotation typesM
  • Serialize and deserialize a binary treeH

02Heaps & Priority Queues7 topics

  • Min-heap and max-heap: structure, O(log n) operationsH
  • heapify O(n) — why faster than n insertsH
  • Python heapq: heappush, heappop, heapify, nlargestC
  • Max-heap via negation trickC
  • K-th largest element: O(n log k) heap approachC
  • Merge K sorted lists: min-heap solutionH
  • Sliding window maximum: monotonic dequeH

03Algorithm Patterns1 topics

  • Tries / Prefix Trees: O(m) insert/search, autocompleteM

All 53 modules

Practise it

Knowing it is half.
Saying it is the rest.

Run a realistic voice interview with an AI panel in the Interview Room, then read a scored report on every answer.