950. Reveal Cards In Increasing Order
·
Algorithm
Reveal Cards In Increasing Order - 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 정수 카드 목록 list가 주어진다. 이 list를 랜덤 하게 섞은 뒤, 아래 순서대로 카드를 뽑았을 때 카드를 뽑는 순서가 오름차순이 되게 하는 섞인 list를 반환하는 문제다. 뽑는 방법은 아래와 같다. 맨 앞의 카드를 뽑는다. 그다음 카드를 맨 뒤로 돌린다. 예시 Input: deck = [17,13,11,2,3,5,7] Output: [2,13,3..