AlgoMaster Logo

Find K Pairs with Smallest Sums

nums1=[1, 7, 11],nums2=[2, 4, 6],k=3
0 / 14
nums1nums21711246012012resultpop the smallest sum k times, pushing each row's next pair
algomaster.io
Step:Find the 3 pairs (a, b) with the smallest sums, one value from each sorted array