Searching

  • If the array is sorted, apply binary search.
  • binary_search (First occurrence, second occurrence, count occurrences, peak element)
  • two_pointer_approach (Pair with given sum, triplet with given sum, equilibrium point)
  • Dotwo_pointer_approach need elements to be sorted? Yes.

Sorting

Problem solving class by Yash