@@ -0,0 +1,582 @@
+class Solution:%0A    # @param %7Binteger%5B%5D%7D nums%0A    # @return %7Bvoid%7D Do not return anything, modify nums in-place instead.%0A    def sortColors(self, nums):%0A        a = %5B0, 0, 0%5D%0A        for i in nums:%0A            if i == 0:%0A                a%5B0%5D += 1%0A            elif i == 1:%0A                a%5B1%5D += 1%0A            else:%0A                a%5B2%5D += 1%0A        %0A        a%5B1%5D += a%5B0%5D%0A        a%5B2%5D += a%5B1%5D%0A        for i in range(len(nums)):%0A            if i %3C a%5B0%5D:%0A                nums%5Bi%5D = 0%0A            elif i %3C a%5B1%5D:%0A                nums%5Bi%5D = 1%0A            else:%0A                nums%5Bi%5D = 2%0A

Create SortColors_001.py