LeetCode weekly contest 236
RankNameScoreFinish TimeQ1 (3)Q2 (5)Q3 (5)Q4 (6)1513 / 12115YoungForest120:45:180:02:570:08:590:40:18 1null 1822. Sign of the Product of an Array
签到题。多少负数,是否有0。
1
2
3
4
5
6
7
8
9
10
11
class Solution:
def arraySign(self, nums: List[int]) -> int:
x = 1
for i in nums: