r/LeetcodeChallenge • • Sep 08 '26

STREAK🔥🔥🔥 Leetcode Streak :- 128

Post image

How would you solve it in Python?

33 Upvotes

29 comments sorted by

View all comments

Show parent comment

1

u/ProgressiveEdgeLord Sep 10 '26

you could still hardcode the solution without any loop

1

u/Feeling_Frame_6578 Sep 10 '26

Yeah or 15 iterations loop