Comment

Phil Colbert

Ouch. Feel free to discard this post after you fix this.

After the insert, shouldn't combined be
[100, 123, 503, 1001, 45, 812, 332]
?
After all, you started with 2 lists of 3 items (6 total). Adding another item gives 7 items, not 6.

Replies

Peter Bengtsson

You are stunningly correct! Thanks for the catch. Bad copy-n-pasta-job on my end. Corrected and again, thank you for mentioning it.