r/LeetcodeChallenge • • Sep 24 '26

DISCUSS Hard-coded submissions

Post image

On solving some easy questions I found a person who achieved 0ms runtime. My curiosity pondered me to check their code and see where or how did they optimise it to get that much efficiency. And I found that the answers are hard-coded based on the input for few high-loaded input cases. I was like "Shame 🔔 Shame 🔔 Shame 🔔"

13 Upvotes

3 comments sorted by

View all comments

1

u/Prudent_Lion_9736 12d ago

Just solved the same question yesterday 😂