← Two Pointers Quiz: all 8 questions
Two Pointers Quiz · Question 7 of 8
When merging two sorted arrays into the first array's extra space, from which end do you fill?
When merging two sorted arrays into the first array's extra space, from which end do you fill?
- A.From the start
- B.From the end
- C.From the middle
- D.It doesn't matter
Answer & explanation
Correct answer: From the end
Filling from the back never overwrites values in the first array that haven't been placed yet.
Can you get the rest right without peeking?
Take the timed Two Pointers Quiz quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →