Binary Search

Be very careful with the following:

  • include "==" or not?
  • l = mid or l = mid+1
  • When to terminate? Note to avoid infinite loop.

results matching ""

    No results matching ""