摘要: Given a binary string s, return the number of substrings with all characters 1's. Since the answer may be too large, return it modulo 109 + 7. Example 阅读全文
posted @ 2020-07-13 08:03 CNoodle 阅读(322) 评论(0) 推荐(0)
摘要: Given an array of integers nums, return the number of good pairs. A pair (i, j) is called good if nums[i] == nums[j] and i < j. Example 1: Input: nums 阅读全文
posted @ 2020-07-13 04:33 CNoodle 阅读(808) 评论(0) 推荐(0)