What is the running time of counting sort for n integers in the range 0 to k?
- AO(k log n)
- BO(n²)
- CO(n + k)
- DO(n log n)
What is the running time of counting sort for n integers in the range 0 to k?
What is the time complexity of linear search in an unsorted array of n elements (worst case)?
What is the Big O of 3n² + 5n + 2?
In a sorted array, you look for two elements that sum to a target by moving one pointer from each end inwards. What is the time complexity?
What does the Floyd–Warshall algorithm compute, and how fast?
A recurrence T(n) = 2T(n/2) + O(n) solves to:
How do n! and 2ⁿ compare for large n?
Strassen's algorithm multiplies matrices using 7 instead of 8 recursive multiplications of half-size blocks. What is its running time?
Full step-by-step solutions: practise this topic on examproblems.com.