Leetcode 75. Sort Colors (Dutch National flag, pointers)


Leetcode 75. Sort Colors (Dutch National flag, pointers)

https://leetcode.com/problems/sort-colors/ Sort Colors - 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 이 문제는 sort 없이 0,1,2로 대표되는 빨강,하얀,파랑 3가지 색깔 순서대로 정렬시키는 문제입니다 다른 문제와 달리, return 없이 값을 교체해야 한다는 조건이 붙어있습니다 class Solution: def sortColors(self, nums: List[int]) -> None: colors = [0..


원문링크 : Leetcode 75. Sort Colors (Dutch National flag, pointers)