← Barclays questions
CodingReported in a candidate post, Jul 2025

Compute the slope of a number from its maxima and minima digits

Filed under Barclays

Scan the digits of a number from right to left. A digit that is smaller than both neighbours is a minimum and a digit larger than both neighbours is a maximum. The slope is the count of maxima plus…

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.