摘要: Given an array of integers arr. Return the number of sub-arrays with odd sum. As the answer may grow large, the answer must be computed modulo 10^9 + 阅读全文
posted @ 2020-11-08 07:38 Sheanne 阅读(91) 评论(0) 推荐(0)
摘要: Alex and Lee play a game with piles of stones. There are an even number of piles arranged in a row, and each pile has a positive integer number of sto 阅读全文
posted @ 2020-11-08 07:03 Sheanne 阅读(73) 评论(0) 推荐(0)
摘要: You have n candies, the ith candy is of type candies[i]. You want to distribute the candies equally between a sister and a brother so that each of the 阅读全文
posted @ 2020-11-08 04:50 Sheanne 阅读(56) 评论(0) 推荐(0)
摘要: You are given two non-empty linked lists representing two non-negative integers. The most significant digit comes first and each of their nodes contai 阅读全文
posted @ 2020-11-08 04:32 Sheanne 阅读(59) 评论(0) 推荐(0)