Search
⌘K

Leetcode 2191. Sort the Jumbled Numbers

Given a permutation mapping of decimal digits, compute each number’s "mapped value" by replacing every digit per mapping (ignoring leading zeros) and return nums sorted by these mapped values in non-decreasing order, preserving original relative order for ties.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.