Remove Duplicates from Sorted Array
sorted array, remove the duplicates in place,
each element appear only once.
(1) 这里的j指向的是非重的最后一个元素,每次拷贝前先j++
Remove
Duplicates from Sorted Array II
duplicates
are allowed at most twice? 至多两次.
(1) 此处的j是非重复元素后的第一个,故先拷贝再加
283.
Move Zeroes
j指向的是当前不为0的数后面的第一个数,每次i找到不为0的数后直接和j交换就好啦。