摘要: func moveZeroes(nums []int) { var slow = 0 for fast := 0; fast < len(nums); fast++ { if nums[fast] != 0 { nums[slow] = nums[fast] slow++ } } for ;slow 阅读全文
posted @ 2023-03-10 15:56 刷刷题啊呀呀 阅读(18) 评论(0) 推荐(0) 编辑