Dynamic Programming21 sections · 916 units
Open in CourseQuiz: Deque Invariant
Why we pop from back
Check Your Understanding
When using a deque to maintain convex hull with decreasing slopes, what invariant must be preserved?
- A.Each line must have positive slope
- B.Deque always has exactly n lines for n states
- C.Lines stored in increasing order of y-intercept
- D.Adjacent lines must intersect at increasing x-coordinates