What is amortized time complexity?
Cost averaged over multiple operations.
What types of problems have O(log n) and O(n log n)?
O(log n) is common in divide-and-conquer (e.g., binary search), O(n log n) appears in sorting (e.g., Merge Sort, Quick Sort).
What is Big O Notation?
Describes worst-case runtime growth rate.
What is quadratic growth and when is it often seen?
O(n²), if an algorithm has nested loops and the inner loop shrinks or grows based on the outer loop.
What is the time complexity of finding all permutations? and why?
O(n!) because there are n! possible permutations.