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.
输入一个数字列表,我们要把所有的0元后置,并要保持非0元的原顺序。
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.
输入一个数字列表,我们要把所有的0元后置,并要保持非0元的原顺序。
应用推荐