LeetCode 0 ms Solution Revealed

How to Get 0 ms on LeetCode 🚀😂 Solved a problem. Got 3 ms. Felt smart for a minute 🧠✨ Then I saw someone with 0 ms. Ego slightly hurt. Am I getting old? Did someone unlock O(0)? Is there a secret JVM setting I missed?? 😭 So I opened their solution… and found this: static { Runtime.getRuntime().addShutdownHook(new Thread(() -> { try (FileWriter fw = new FileWriter("display_runtime.txt")) { fw.write("000"); } })); } Bro didn’t optimize the code. Bro optimized the scoreboard 🏆😂 Honestly… I respect the creativity 🤝🔥 #LeetCode #Java #CodingLife

To view or add a comment, sign in

Explore content categories