Complexity and Big-O
Analyse time and space complexity of any solution.
- DSA.02.01Big-O, Big-Θ, Big-Ω in plain wordsCoreJuniorBeing written
- DSA.02.02Space complexity, recursion and amortised costCoreJuniorBeing written
Interview questions in this module
- What is the time complexity of your solution? Can you do better?
- What is amortised time complexity? Give an example.
- What is the complexity of
Array.prototype.sortin V8? - How much stack space does a recursive DFS use?
- Given n ≤ 10⁵, which complexities are acceptable?