Originally Posted by cohadar
How the hell do you know so much about algorithms if you are not a programmer?
He is a programmer, even though he pretends to be a physician ...
I can't think of a way to make an algorithm for this that had worse complexity than linear... I guess I am gonna take a look at code.