Back to course home
0% completed
Vote For New Content
There seems to be a typo somewhere in the code. When I tried the same algorithm ...
Alan Lo
Mar 21, 2022
There seems to be a typo somewhere in the code. When I tried the same algorithm with Leetcode I get the wrong answer. https://leetcode.com/problems/target-sum/
0
0
Comments
Comments
Design Gurus4 years ago
What error do you see?
Th leetcode problem is a little different. Our problem is taking only positive numbers.
S
Shan 3 years ago
Can you provide a solution for when the nums array allows 0 as a valid value
On this page
Problem Statement
Example 1:
Example 2:
Try it yourself