Problem
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You may assume NO duplicates in the array. Example
O(log(n)) time Note标准二分法题目。 Solution
|
小黑屋|在路上
( 蜀ICP备15035742号-1 )
GMT+8, 2025-5-6 16:07
Copyright 2015-2025 djqfx