leetcode icon indicating copy to clipboard operation
leetcode copied to clipboard

Update 0112-path-sum.java

Open Anukriti167 opened this issue 2 years ago • 0 comments

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.

Anukriti167 avatar May 24 '23 15:05 Anukriti167