Skip to content

Commit ba6e544

Browse files
solves sign of the product of an array
1 parent 86bf3e0 commit ba6e544

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/SignOfTheProductOfAnArray.java

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// https://leetcode.com/problems/sign-of-the-product-of-an-array
2+
// T: O(N)
3+
// S: O(1)
4+
15
public class SignOfTheProductOfAnArray {
26
public int arraySign(int[] nums) {
37
int sign = 1;

0 commit comments

Comments
 (0)