← Microsoft questions

Compare strings under custom lexical ordering with multi-char tokens

Filed under Microsoft

Given a custom alphabetical order where multi-character strings like 'ng' and 'st' count as single characters, compare two input strings and return 1 if the first string is lexicographically greater…

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

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