[LeetCode 풀이/python] 60. Permutation Sequence (hard)
문제 설명: 정수 집합 [1, 2, 3, ..., n] 은 총 n! 개의 고유한 순열(permutations) 을 포함한다. 모든 순열 조합을 순서대로 나열해서 레이블링을 하면, n = 3 일 경우의 시퀀스는 다음과 같다: "123" "132" "213" "231" "312" "321" n , k 가 주어졌을 때, k 번째 순열 시퀀스를 리턴하시오. (The set [1, 2, 3, ..., n] contains a total of n! unique permutations. By listing and labeling all of the permutations in order, we get the following sequence for n = 3: (생략) Given n and k, return the ..
2021. 2. 19.