Closest Value Pair
LinkedIn interview questions · Medium · Coding round · 6 tests
You are given two sorted arrays of integers A and B.
Choose one value from each array so that the absolute difference is minimized.
Return the winning pair as [a, b], where a comes from
A and b comes from B.
Tie breaking
Run your code with Ctrl+Enter to see results.