Skip to main content
CodingPrepGuide.com • Official 1-Page Reference

Big-O Complexity & Data Structures Printable Cheat Sheet

Time & Space Complexity for All Core Data Structures & Sorting Algorithms

⚡ Quick-Decision Recognition Triggers
› O(1) < O(log n) < O(n) < O(n log n) < O(n²) < O(2ⁿ) < O(n!)
› 10^7 operations ≈ 1 second of CPU execution in competitive coding / interview sandbox
› For N = 10^5: O(n log n) or O(n) required (O(n²) will Time Out)
› For N = 20: O(2ⁿ) Backtracking is acceptable
› For N = 500: O(n³) or O(n²) DP is acceptable

Data Structure Operation Complexities 1-Page Cheatsheet

Sorting Algorithm Complexities 1-Page Cheatsheet

CodingPrepGuide.com • Free Coding Interview Preparation • No Sign-Up Required
Buy me a coffee
Daily Practice
0/0