8 ms·
It would only be cheating if you could merge the arrays in O(1), which you can't.
by IncreasePosts 2y ago
It would only be cheating if you could merge the arrays in O(1), which you can't.
- hammeiam 2y agoahh this is the insight I was missing, thank you!