Skip to content

Commit

Permalink
Removed extra Python folder that was created from a mistyped folder n…
Browse files Browse the repository at this point in the history
…ame in a PR. Folder was named "python " with an extra space, which created an new folder with only that file in it. Merged that file into the main python folder as well as a file that had been submitted under python/python.
  • Loading branch information
felivalencia3 authored Aug 4, 2023
1 parent da1272c commit 1157cd2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 21 deletions.
18 changes: 7 additions & 11 deletions python/1822-sign-of-the-product-of-an-array.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
from typing import List


class Solution:
def arraySign(self, nums: List[int]) -> int:
sign = 1

for num in nums:
if num == 0:
flag = True
for i in nums:
if i == 0:
return 0
if num < 0:
sign = -1 * sign

return sign
if i < 0:
flag = not flag
return 1 if flag else -1
File renamed without changes.
10 changes: 0 additions & 10 deletions python/python/1822-sign-of-the-product-of-an-array.py

This file was deleted.

0 comments on commit 1157cd2

Please sign in to comment.