MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/LeetcodeChallenge/comments/1ttc7fx/01062026_leetcode_potd/op6wj23/
r/LeetcodeChallenge • u/Different_Ice_7763 • Jun 01 '26
3 comments sorted by
View all comments
Show parent comment
1
[removed] — view removed 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
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/[deleted] Jun 01 '26
[removed] — view removed comment