Maximum even sum subsequence of length K
Filed under Snowflake
The question
Given an array of integers and an integer K, find a subsequence of length K that maximizes the sum such that the sum is even, or return -1.
No write-up yet. Related questions below have one.
Related Snowflake questions
Collected from public candidate posts and coding forums. Updated Nov 2026.