摘要: There is a function signFunc(x) that returns: 1 if x is positive. -1 if x is negative. 0 if x is equal to 0. You are given an integer array nums. Let  阅读全文
posted @ 2021-05-03 16:28 Makerr 阅读(46) 评论(0) 推荐(0) 编辑
摘要: You are given an array points where points[i] = [xi, yi] is the coordinates of the ith point on a 2D plane. Multiple points can have the same coordina 阅读全文
posted @ 2021-05-03 15:48 Makerr 阅读(87) 评论(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 @ 2021-05-03 14:41 Makerr 阅读(43) 评论(0) 推荐(0) 编辑