← 返回 amazon 的题目列表Balance Subsequence
类型:online_judge
Given a positive integer array, find the longest subsequence such that the sum of all elements in the subsequence is even. Please implement and provide all relevant test cases.
Example
Input
4
1 2 3 4