思路1 binary search

  • time complexity $O(logn)$

  • space complexity $O(1)$

Last updated