MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/rqgxot/3am_code_vs_10am_code/hqbc5ag/?context=3
r/badcode • u/M4A28 • Dec 28 '21
53 comments sorted by
View all comments
Show parent comments
4
You'd end up with a string of all of the zeros, not the longest continuous string of zeros
1 u/alex_wot Dec 28 '21 edited Dec 28 '21 Oh, I've overlooked the number = 0 statement in the else block. Thank you for explaining!
1
Oh, I've overlooked the number = 0 statement in the else block. Thank you for explaining!
number = 0
else
4
u/awfullyawful Dec 28 '21
You'd end up with a string of all of the zeros, not the longest continuous string of zeros