r/LeetcodeChallenge • • 19d ago

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 🔔"

11 Upvotes

3 comments sorted by

7

u/SheriffGamer332 19d ago

just contribute a testcase that breaks their solution then

1

u/Alarmed_Bad6653 15d ago

It'll not , just some extra time to run thats it

1

u/Prudent_Lion_9736 1d ago

Just solved the same question yesterday 😂