Back to course home
0% completed
Vote For New Content
This method cannot past the test case [0,0,0,0,0,0,0,0,1] S = 1 . Is there anoth...
Charlotte
Sep 26, 2022
This method cannot past the test case [0,0,0,0,0,0,0,0,1] S = 1 . Is there another solution?
1
0
Comments
Comments
Design Gurus3 years ago
This is not a valid input. The problem expects only positive numbers:
You are given a set of positive numbers...
M
Mike Xu3 years ago
The same question on LeetCode allows the integer to be anything non-negative, causing this solution to not work
On this page