Dynamic Programming21 sections · 916 units
Open in CourseQuiz: Nested Binary Search
Multi-constraint handling
Check Your Understanding
In nested binary search for 2D Aliens, what is time complexity compared to naive O(n * K1 * K2)?
- A.O(n^2 * log(K1 * K2))
- B.O(n * log(maxCost)^2) where each DP solve is O(n)
- C.O(n * K1 * K2 / log(n))
- D.O(n * log(K1) * log(K2))