再看国内的米二和华为Ascend d1# PDA - 掌中宝
x*9
1 楼
An array, increasing order and the beginning and then decrease from 1 point.
How to find the point in log(N)? I had no idea in the interview.
最近脑子短路,麻烦大家给个思路。
test case:
1 2 3 4 5 10 9 8 7 6
1 2 3 4 5 4 3 2
How to find the point in log(N)? I had no idea in the interview.
最近脑子短路,麻烦大家给个思路。
test case:
1 2 3 4 5 10 9 8 7 6
1 2 3 4 5 4 3 2