Trees, Graphs & Sorting. Binary Trees — BFS & DFS. class TreeNode { constructor( public val: number, public left: TreeNode | null = null, public right: TreeNode | null = null ) {} } // DFS — Inorder (left, root, right) →…
ReadArrays, Strings & Hash Maps. Complexity Quick Reference. Data Structure | Access | Search | Insert | Delete ------------------|--------|--------|--------|------- Array | O(1) | O(n) | O(n) | O(n) Dynamic Array | O(1) | O…
ReadSave this stack to your personal DevRecall — add your own notes, track what you're learning, and share what you know with the community.
Get started — free forever