Problem 2570 · Easy

Merge Two 2D Arrays by Summing Values

Merge two id-sorted lists in one pass, adding the values when an id appears in both.

Open the interactive visualisation