3 ms·
That was my first thought. Disallow inserting into the middle of the list and solution 1 becomes much simpler.
by mason55 9y ago
That was my first thought. Disallow inserting into the middle of the list and solution 1 becomes much simpler.
3 ms·