Counting Problem
You are given an array $A = [A_1, A_2, \ldots, A_N]$. Is it possible to partition $A$ into two non-empty [subsequences](https://en.wikipedia.org/wiki/Subsequence) $S_1$ and $S_2$ such that $sum(S_1) \times sum(S_2)$ is **odd**? Here, $sum(S_1)$ denotes the sum of elements in $S_1$, and $sum(S_2)$ is defined similarly. **Note:** $S_1$ and $S_2$ must *partition* $A$, that is: - $S_1$ and $S_2$ mu
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start