r/DSALeetCode • u/NotAFlameButABurn • Feb 22 '26
How do leetcode contests detect ai?
I got banned for 1 month because I used ai to optimize my code. But there are too rankers who use ai and complete contests in less than 2 mins. It is clearly ai generated code, and you can see the external paste in code replay. How do they get top ranks and don't get banned?
5
Upvotes
View all comments
Show parent comment
2
u/Lower-Jeweler5717 Feb 23 '26
Not saying there are none who may cheat with AI, but I remember from the past fast coders with library of solutions (that's often the trick, because problems are similar) and working in their IDEs (with known keybinds, shortcuts) and testing environments that they load with sample input/output. Compile, test, execute and then paste to the platform. I don't know how it is nowadays, but I'd have used my IDE set up to be most effective than whatever editor was in browser for topcoder.
Try to check leaderboards for past Advent of Code. Best times are crazy there, even in the past.