0484. Find Permutation
Description
**Input:** s = "I"
**Output:** [1,2]
**Explanation:** [1,2] is the only legal permutation that can represented by s, where the number 1 and 2 construct an increasing relationship.**Input:** s = "DI"
**Output:** [2,1,3]
**Explanation:** Both [2,1,3] and [3,1,2] can be represented as "DI", but since we want to find the smallest lexicographical permutation, you should return [2,1,3]ac
Last updated