Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. Example: Input: [,1,,3,12] Output: [1,3,12,0,0] 原题地址: Move Zeroes 难度: Easy 题意:将数组内的0数移到数组末尾,非0值需要保证相对位置不变,比如上面例子中,非0…