You are given two 2D integer arrays `nums1` and `nums2`, where each `nums[i] = [id, val]` says the number with that `id` has value `val`. Each array has unique ids and is sorted in ascending order by id.
Merge them into one array sorted by id: every id that appears in either array appears once, and its value is the sum of its values in both arrays (an id missing from one array counts as 0 there).
You are given two 2D integer arrays nums1 and nums2, where each nums[i] = [id, val] says the number with that id has value val. Each array has unique ids and is sorted in ascending order by id.
Merge them into one array sorted by id: every id that appears in either array appears once, and its value is the sum of its values in both arrays (an id missing from one array counts as 0 there).