awelgorithms

Merge Sorted Array: the skills you need first

Updated

LeetCode · easy · arrays. Write from the end so you do not clobber unread values in nums1.

open on LeetCode

Skills this problem builds on

Stuck on Merge Sorted Array? It is usually one of these. Get each one solid and the solution stops being a trick.

  1. Merge two sorted arrays
  2. Merge into extra capacity
  3. Choose smaller current element
check which ones you have 10 minutes, free, no account.

More arrays problems