Leetcode Solutions Two Pointer In this approach two pointers move towards or opposite to each other. It does not divides the search space logarithmicaly. Binary Search In this approach we continuosly divide search space into two halves It divides the search space logarithmicaly.