60
-
[LeetCode] 60. Permutation SequenceLeetCode 2021. 10. 27. 17:30
https://leetcode.com/problems/permutation-sequence/ Permutation Sequence - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com Permutation Sequence - Hard 1에서 n까지의 숫자가 한번씩 쓰여 이루어진 수가 있다. 이 수들을 나열했을때, k번쨰로 작은 수를 구하는 문제다. 이 문제는 중/고등학교 경우의 수에서 많이 보이는 문제다. 앞자리부터 구해나가면 되는데, 가장 앞자리를 구하는 방법은 ..