Get unlimited access
Open in app
Home
Notifications
Lists
Stories

Write
The Code Shelf
Published in

The Code Shelf

Anjana Sudhir
Anjana Sudhir

Jun 25, 2020

·
2 min read
·

CODING

Day 28: The “Find K Pairs with Smallest Sums” Problem

Problem:

You are given two integer arrays nums1 and nums2 sorted in ascending order and an integer k.

Define a pair (u,v) which consists of one element from the first array and one element from the second array.

--

--

More from The Code Shelf

Well-curated thoughts about different programming paradigms, concepts etc., written with a cup of coffee

Read more from The Code Shelf

Recommended from Medium

Amador UAVs

Amador UAVs

Ardupilot: A Feature-Rich Autopilot for All

Chirag Juneja

Chirag Juneja

SOCKETS

Al-Waleed Shihadeh

Al-Waleed Shihadeh

in

Level Up Coding

Six Tips For Running Swarm Cluster in Production

Business Access Report

Business Access Report

bg

Lorenzo Zarantonello

Lorenzo Zarantonello

in

Better Programming

Play Around With GitHub Copilot Through Visual Studio 2022 IDE

Yogansh Gupta

Yogansh Gupta

Dynamic Programming: Let’s make it layman simple.

Mildred Amiani

Mildred Amiani

‘Traversing the Storm’

Ehsan Ul Haq

Ehsan Ul Haq

in

DataDrivenInvestor

Big(O) in a Big Picture(Algorithms)

AboutHelpTermsPrivacy


Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Anjana Sudhir

Anjana Sudhir

Senior Software Engineer & Scrum Master @ Agoda (Booking Holdings Inc.)

More from Medium

LWC

LWC

LeetCode 2344. Minimum Deletions to Make Array Divisible

Harshal Tripathi

Harshal Tripathi

in

ioyogi

Big O — The notion of notation (Part 2)

Lindsey Reyes

Lindsey Reyes

Interview Tips for Software Engineers

Daks

Daks

Day #1 LC Interview Prep

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable