287 binary search solution
Closed this issue · 2 comments
shurui91 commented
It's good to see that you share a lot of JS solutions. Just a quick suggestion. I think the most popular solution for 287 is binary search.
everthis commented
While using binary search, the time complexity of this problem would be O(nlog(n)), which is not better than O(n).
shurui91 commented
That's true. Thanks!