3 ms·
About 10 years ago, I once didn't sleep a night and was solving a problem with a switch statement that was 200 lines long. The next day, well rested, I realize
by mettamage 5y ago
About 10 years ago, I once didn't sleep a night and was solving a problem with a switch statement that was 200 lines long.
The next day, well rested, I realized I could do the same thing with a for loop because I already had all the data I needed.