AlgoMaster Logo

Find K Pairs with Smallest Sums

nums1=[1, 7, 11],nums2=[2, 4, 6],k=3
0 / 14
algomaster.io
Step:Build every pair, sort by sum, then take the 3 smallest