there are N elements in an array. u have one number x. u have to check whether there exists two elements in that array whose sum is x. But order should be less than N^2( N square).

i dont know the method how to achieve order less than n^2.

This topic has been dead for over six months. Start a new discussion instead.

Recommended Topics