← Barclays questions
CodingReported in a candidate post, Aug 2023

The Chemist: closest pair difference with maximum sum

Filed under Barclays

Given a target value and a list of chemical powers, choose two elements whose absolute difference is as close as possible to the target. If several pairs are equally close, choose the pair with the…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Barclays questions

Collected from public candidate posts and coding forums. Updated Nov 2026.