3 ms·
Another idea is to just stuff the input into a hash table and then say: is 0 there? is 1 there? ... is n-1 there?
by marvy 12y ago
Another idea is to just stuff the input into a hash table and then say:
is 0 there?
is 1 there?
...
is n-1 there?