← Mastercard questions
CodingEasy

Count valid lexicographical neighbor character pairs in words

Filed under Mastercard

The question

Given a string of words separated by whitespace, return for each word the number of adjacent character pairs that are in lexicographical order.

No write-up yet. Related questions below have one.

Related Mastercard questions

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