8.LeetCode(初级算法)数组篇-移动零C++

网上找的,简单易懂

class Solution {
public:
    void moveZeroes(vector& nums) {
        int num = nums.size();
        int index = 0;
        for(int i=0;i

你可能感兴趣的:(LeetCode)