DEV Community

Discussion on: Daily Challenge #194 - Spread Number

Collapse
 
dwilmer profile image
Daan Wilmer

I think you have an off-by-one error: spreadNumber(2) gives [0, 1] instead of [1, 2]. Nice and concise, though!

Collapse
 
sag1v profile image
Sagiv ben giat

Thanks. I didnt notice its zero based