🚨 LeetCode Runtime Hack Exposed (0ms Mystery!) 🚨
Ever wondered how some submissions magically show 0ms runtime? 🤯
I got curious, did some digging… and found a trick which some of them uses.
Sharing it in my next post.
#LeetCode #Coding #CompetitiveProgramming #DSA #Tech
2
1
48
Cpp
auto init = atexit([]() {
ofstream("display_runtime.txt") << "0";
});
🧠 What’s happening here?
atexit() runs a function when the program exits
This code writes "0" into a file called display_runtime.txt
Some people use it to manipulate the displayed runtime (illegal)
46
