← Salesforce questions
CodingReported in a candidate post, Jul 2023

Minimum jumps to reach largest and smallest character

Filed under Salesforce

Given a string, find the minimum jumps required starting from either the leftmost or rightmost end of the string to reach the positions of its lexicographically largest and smallest characters.

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 Salesforce questions

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