2015年12月9日星期三

Algorithm -- Binary Search

Binary search is one essential algorithm type. It operates on
  • array
  • sorted
Basic Binary Search has recursion and non recursion implementation. Normally, non recursion is simpler to control and vary for many derived problems

Here is the basic form


Search Insert Position
\ Search in Rotated Sorted Array
Find Square root of an integer
Search in a 2D matrix
Search for a range

没有评论:

发表评论