Problem · Greedy
Find Maximum Even Sum
Learn this problemProblem statement
The goal is to find the maximum possible even sum of values of tags that can be chosen.
Note:
Function
findMaximumEvenSum(val: int[]) → intExamples
Example 1
val = [2, 3, 6, -5, 10, 1, 1]return = 22
The tags [2, 3, 6, 10, 1] sum to 22 which is even and is the maximum possible. Hence, the answer is 22.
Constraints
🥑🥑More IBM problems
- Parent Process NumberOA · Seen Jul 2026
- Request Retry CountOA · Seen Jul 2026
- Count Strictly Increasing Subsequences of Length 3OA · Seen Jul 2026
- Maximum Requests in a Time WindowOA · Seen Jul 2026
- Query Type Frequency WindowOA · Seen Jul 2026
- Minimum Number of Non-Empty Disjoint SegmentsOA · Seen Jul 2026
- Spam Text ClassificationOA · Seen Jul 2026
- Count Ideal NumbersOA · Seen Jun 2026