Directi

1 DSA problems asked in Directi coding interviews

0 Easy
1 Medium
0 Hard
​

1 problem

Dynamic Programming
1
Number of Sub-arrays With Odd Sum
Medium

Given an array of integers `arr`, return the number of subarrays with an odd sum. Since the answer can be very large, return it modulo $10^9 + 7$.