← Paytm questions
CodingReported in a candidate post, Jul 2025

Lexicographic rank of a string

Filed under Paytm · Also reported at Informatica, Microsoft, PayU

Given a string with no repeated characters, find its rank among all permutations of its characters sorted in lexicographic (dictionary) order. The smallest permutation has rank 1.

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

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