摘要: 给定一个数组 nums,编写一个函数将所有 0 移动到数组的末尾,同时保持非零元素的相对顺序。 //leetcode上的数组算法题 示例: 说明: 以下是代码: class Solution { public void moveZeroes(int[] nums) { int temp =0; fo 阅读全文
posted @ 2019-07-22 21:59 无赖小子 阅读(1429) 评论(0) 推荐(0) 编辑