Problem 2098 · Medium

Subsequence of Size K With the Largest Even Sum

Choose exactly k values with the largest possible even sum.

Open the interactive visualisation