摘要: Given the array prices where prices[i] is the price of the ith item in a shop. There is a special discount for items in the shop, if you buy the ith i 阅读全文
posted @ 2020-06-17 09:36 Schwifty 阅读(152) 评论(0) 推荐(0)
摘要: Given an array nums. We define a running sum of an array as runningSum[i] = sum(nums[0]…nums[i]). Return the running sum of nums. Example 1: Input: nu 阅读全文
posted @ 2020-06-17 04:46 Schwifty 阅读(181) 评论(0) 推荐(0)