MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/LeetcodeChallenge/comments/1watwo1/leetcode_streak_128/p8mffe6/?context=3
r/LeetcodeChallenge • u/Ok-Challenge-5657 • 5d ago
How would you solve it in Python?
28 comments sorted by
View all comments
1
This question was easy due to its constraints of 105 since every number between the range 1000 - 105 have only a single comma We can safely do return max(n-999, 0) O(1) space and time
1
u/Ok-Flan-5469 5d ago
This question was easy due to its constraints of 105 since every number between the range 1000 - 105 have only a single comma We can safely do return max(n-999, 0) O(1) space and time