kunal-kushwaha / DSA-Bootcamp-Java

This repository consists of the code samples, assignments, and notes for the Java data structures & algorithms + interview preparation bootcamp of WeMakeDevs.
https://www.youtube.com/playlist?list=PL9gnSGHSqcnr_DxHsP7AW9ftq0AtAyYqJ
17.25k stars 11.08k forks source link

Code Correction: updated logic according to sum(0) #913

Open kushal-punem opened 1 year ago

kushal-punem commented 1 year ago

Hello kunal, thank you so much for this wonderful course. Earlier, in this code it was giving 1 as a output for the input value of 0, so i have changed that logic and now it is giving correct output as 0 for the sum(0).

Please do consider this I'm happy to contribute.