384
-
[LeetCode] 384. Shuffle an ArrayLeetCode 2021. 7. 20. 21:20
https://leetcode.com/problems/shuffle-an-array/ Shuffle an Array - 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 Shuffle an Array. 각기 다른 수가 들어있는 vector 주어졌을때, "shuffle" 명령이 들어오면 이를 섞고, "reset" 명령이 들어오면 본래의 vector를 return 하는 문제다. 매우매우매우매우 간단하다. algorithm 헤더에 random_shuffle 이 구현되어 ..