mirror of
https://github.com/dholerobin/Lecture_Notes.git
synced 2025-07-01 04:56:29 +00:00
Update 2.md
This commit is contained in:
parent
6ca41be67e
commit
872edc4dea
@ -125,9 +125,10 @@ Sorted Permutation Rank (Optional)
|
||||
> Given S, find the rank of the string amongst its permutations sorted lexicographically.
|
||||
Assume that no characters are repeated.
|
||||
|
||||
```python
|
||||
```
|
||||
Input : 'acb'
|
||||
Output : 2
|
||||
Explanation:
|
||||
The order permutations with letters 'a', 'c', and 'b' :
|
||||
abc
|
||||
acb
|
||||
|
Loading…
x
Reference in New Issue
Block a user