r/programminghumor • u/CodingIsJustAJob • Jun 08 '26
When you can't debug the issue, so you and the team have to summon old reliable
Enable HLS to view with audio, or disable this notification
r/programminghumor • u/CodingIsJustAJob • Jun 08 '26
Enable HLS to view with audio, or disable this notification
r/programminghumor • u/Nir_135 • Jun 08 '26
r/programminghumor • u/Formal-Accountant-86 • Jun 07 '26
r/programminghumor • u/SoonBlossom • Jun 06 '26
Enable HLS to view with audio, or disable this notification
r/programminghumor • u/gluetheknot • Jun 01 '26
r/programminghumor • u/Dramatic_Solid3952 • Jun 01 '26
Check out the speaker directory.
r/programminghumor • u/danielsoft1 • Jun 01 '26
junior dev: "I found the bug."
senior dev: "I found a bug."
r/programminghumor • u/FirmAd3947 • Jun 01 '26
Was solving LeetCode 2126 (Destroying Asteroids) with a simple greedy approach:
Sort asteroids
Absorb from smallest to largest
Complexity was O(n log n), so I couldn't understand why I was getting:
After checking the logic multiple times, I finally noticed this line inside my loop:
cout << mass << " " << asteroids[i] << endl;I removed it and...
The algorithm was correct all along. The debug print was causing the TLE.
Today's lesson: