Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 278 Bytes

File metadata and controls

15 lines (8 loc) · 278 Bytes

Binary search:

Step:

  1. Find the mid index and set the low and high value;
  2. Compare the mid value and target one,

if the mid value is greater than the target one ,than set the high value to mid -1; if no, set the low value to mid +1;

数组去重

Hash中转