I'm learning algorithms and I'm reading the book "introduction to algorithms 3rd edition", and in a problem section it describes the next problem :
Describe a O(n*log(n))-time algorithm that, given a set S of n integers and another integer x, determines whether or not there exist two elements in S whose sum is exactly x.
And I don't know if it propose and ordered Set or an unordered Set?