Time O(logn). Space O(1).
Tag Archives: Binary Search
LeetCode 153 LintCode 159 – Python 3 (Week 10 – 06)
Find Peak Element – Python 3 (Week 10 – 05)
LeetCode 278 LintCode 74 – Python 3 (Week 10 – 04)
LeetCode 240 LintCode 38 – Python 3 (Week 10 – 03)
O(m+n) time and O(1) extra space.