Well written, I think you got confuse on the insert paragraph on #3:
"We know that the item we want to insert, 26, is greater than 19"
you want to insert 21 and not 26, right?
Good catch! Has been fixed. This is what happens when you've only had one cup of coffee 😴
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.