A classic in-place merge that tests the insight of iterating backward to avoid overwriting. Confirmed high-frequency at Meta as a warm-up coding problem.
Enable JavaScript for the full StreamPrep guide.