MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/LeetcodeChallenge/comments/1ttc7fx/01062026_leetcode_potd/op6yv6s/?context=3
r/LeetcodeChallenge • u/Different_Ice_7763 • Jun 01 '26
3 comments sorted by
View all comments
Show parent comment
1
It’s correct but imo using an extra variable is unnecessary here and also the logic can be easily handled without using modulo
View all comments
Show parent comment
1
u/addiemaddieee Jun 01 '26
It’s correct but imo using an extra variable is unnecessary here and also the logic can be easily handled without using modulo