1262. Greatest Sum Divisible by Three
https://leetcode.com/problems/greatest-sum-divisible-by-three
Description
Given an array nums
of integers, we need to find the maximum possible sum of elements of the array such that it is divisible by three.
Example 1:
Example 2:
Example 3:
Constraints:
1 <= nums.length <= 4 * 10^4
1 <= nums[i] <= 10^4
ac
Previous1261. Find Elements in a Contaminated Binary TreeNext1263. Minimum Moves to Move a Box to Their Target Location
Last updated