DEV Community

Discussion on: Solving "Sum All Numbers in a Range" / freeCodeCamp Algorithm Challenges

Collapse
 
namhle profile image
Nam Hoang Le

No. There is no problem in your methodology. But I think you assumed that arr[0] <= arr[1] ? Have your read description carefully?