Category Archives: Uncategorized
Validate Binary Search Tree – Python 3 (Week 18 – 04)
Time Space O(n).
Closest Binary Search Tree Value – Python 3 (Week 18 – 03)
Time O(n). Space O(n).
Binary Search Tree Iterator – Python 3 (Week 18 – 02)
Time O(n+k). Space O(n).
Binary Search Tree Iterator – Python 3 (Week 18 – 01)
Solution 1 Time, Space O(n). Solution 2
Expression Add Operators – Python 3 (Week 17 – 20)
Letter Combinations of a Kth Lowest Common Ancestor III – Python 3 (Week 17 – 19)
Binary Tree Paths – Python 3 (Week 17 – 18)
Solution 1 Traversal Solution 2 Divide Conquer Time O(n). Space O(n).
Fast Power – Python 3 (Week 17 – 17)
Solution 1 Time O(logn). Space O(1). Solution 2 Time O(logn). Space O(logn).
Search in a Big Sorted Array – Python 3 (Week 17 – 16)
Solution 1 O(logn) time, n is the first index of the given target number. Solution 2