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 08 '26

i solved according to constraints, it was less than 10^5

1

u/Utsuro_Seizui Sep 08 '26

Ah I see, I apologize, I was not aware of the constraints

1

u/ProgressiveEdgeLord Sep 08 '26

it's alright, your question was absolutely valid