What is the optimal asymptotic complexity in which this problem can be solved?
Given a set of integers and another integer , check if there exists two elements and in such that
Bonus : Prove the optimality of your algorithm.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
No explanations have been posted yet. Check back later!