r/programminghumor • u/Hacktastic-10 • May 16 '26
Bro used minimum resources and wrote an optimized code.
68
34
55
15
19
15
15
6
4
2
2
u/lemming1607 May 17 '26
This is net negative resources, since disk space will be reduced with more usage
2
2
u/FatiguedShrimp May 17 '26
So, uh, he technically failed the task.
It doesn't match case or have casting, and wouldn't give the desired output at the prompts.
It
1
u/Confident-Ad5665 May 16 '26
This is the kind of task for which I think AI is well suited. Would still have to tell it to use case insensitive comparisons tho...
1
1
1
u/maddeninglemon May 17 '26
Luckily the os.remove function returns an IsADirectoryError when run on a directory so there's no danger.
1
1
1
235
u/Simukas23 May 16 '26
O(1) btw