294. Java Stream API - 对流进行归约
2026/1/16 9:15:46
283. Move Zeroes (Easy)
Leetcode / 力扣
For example, given nums = [0, 1, 0, 3, 12], after calling your function, nums should be [1, 3, 12, 0, 0].public void moveZeroes(int[] nums) { int idx = 0; for (int num : nums) { if (num != 0) { nums[idx++] = num; } } while (idx < nums.length) { nums[idx++] = 0; } }566. Reshape the Matrix (Easy)