3 ms·
Okay, here's the thing: That's not actually what your example seems to be doing. If you have a b a Then the second a should go in the first column, right? If n
by IHaveASolution 16y ago
Okay, here's the thing: That's not actually what your example seems to be doing. If you have
a
b
a
Then the second a should go in the first column, right? If not, then this is trivial. If so, then the input is all appended to the list.