leetcode
leetcode copied to clipboard
Update 0112-path-sum.java
The new solution added is little more closer to the one explained in the video, the solution present right now has a different logic of reducing the targetSum. But the one explained in the video is to create a new variable curSum and then compare it with targetSum.
- File(s) Modified: 0112-path-sum.java
- Language(s) Used: Java
- Submission URL: https://leetcode.com/problems/path-sum/submissions/956511674/
Important
Please make sure the file name is lowercase and a duplicate file does not already exist before merging.