Search
⌘K

Leetcode 373. Find K Pairs with Smallest Sums

Given two non-decreasing arrays, return the k pairs (one element from each) with the smallest sums — the challenge is to efficiently produce the smallest k sums from the Cartesian product without enumerating all pairs, typically via a min-heap / k-way merge.

Asked at:

LinkedIn

LinkedIn


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Mid February, 2025

LinkedIn

LinkedIn

Senior

Comments

Your account is free and you can post anonymously if you choose.