Phone
follow up: given n digits, find all n digits fancy numbers
Onsite
- binary search
- zig zag sort
- max profit leetcode
- quicksort
- binary tree lock a node (a node can be locked only if all its ancestor and children are unlocked), log n implementation
- find local max/min, log n implementation
- given array, and operators +/-, get target n, need to use all element in array
- n th fibonacci in log n time