</>OfferRetriever
DashboardDiscuss
NEW
Halloween SalePremium questions, over 30% offUnlock all premium questions for over 30% off
$10.42$7.08/mo

--

:

--

:

--

:

--

Get this deal
Back to LinkedIn Questions

Closest Value Pair

Medium

An inventory system has two sorted product catalogs A and B. Each value in the catalog represents a product size. Find a pair [a, b] where a comes from catalog A and b comes from catalog B such that the absolute size difference |a - b| is minimized.

If multiple pairs achieve the same minimum difference, return the one with the smallest a. If there is still a tie on a, return the one with the smallest b. ...

Asked at:LinkedIn

More LinkedIn interview questions

All LinkedIn interview questions
OfferRetriever

Master technical interviews with real questions from top companies. Build your confidence and career.

PRODUCT
PricingDashboardDiscussOfferRetriever vs LeetCodeCompare
LEGAL

© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.