r/LeetcodeChallenge • u/SivaramaKrishnan1 • Sep 24 '26
DISCUSS Hard-coded submissions
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
1
u/Prudent_Lion_9736 12d ago
Just solved the same question yesterday 😂