摘要: 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 109 + 7. Example 阅读全文
posted @ 2024-12-10 14:14 CNoodle 阅读(154) 评论(0) 推荐(0)
摘要: An array is considered special if every pair of its adjacent elements contains two numbers with different parity. You are given an array of integer nu 阅读全文
posted @ 2024-12-10 07:30 CNoodle 阅读(54) 评论(0) 推荐(0)