leetcode.com 2025-11-22
🟢3190.find-minimum-operations-to-make-all-elements-divisible-by-three
🏷️ Tags
#array #math
🟢3190.find-minimum-operations-to-make-all-elements-divisible-by-three
🏷️ Tags
#array #math
Telegraph
find-minimum-operations-to-make-all-elements-divisible-by-three
You are given an integer array nums. In one operation, you can add or subtract 1 from any element of nums. Return the minimum number of operations to make all elements of nums divisible by 3. Example 1: Input: nums = [1,2,3,4] Output: 3 Explanation: All…
leetcode.cn 2025-12-05
🟢3432.count-partitions-with-even-sum-difference
🏷️ Tags
#array #math #prefix_sum
🟢3432.count-partitions-with-even-sum-difference
🏷️ Tags
#array #math #prefix_sum
Telegraph
count-partitions-with-even-sum-difference
给你一个长度为 n 的整数数组 nums 。 分区 是指将数组按照下标 i (0 <= i < n - 1)划分成两个 非空 子数组,其中: