Tap here to switch tabs
Problem
Submissions

Problem: Number of Subsequences with Odd Sum

Try to solve the Number of Subsequences with Odd Sum problem.

Statement

Given an integer array nums, return the total number of subsequences of nums whose sum of elements is odd.

Constraints:

  • 1≤1 \leq nums.length ≤105\leq 10^5

  • 1≤1 \leq nums[i] ≤109\leq 10^9

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Number of Subsequences with Odd Sum

Try to solve the Number of Subsequences with Odd Sum problem.

Statement

Given an integer array nums, return the total number of subsequences of nums whose sum of elements is odd.

Constraints:

  • 1≤1 \leq nums.length ≤105\leq 10^5

  • 1≤1 \leq nums[i] ≤109\leq 10^9