Outstanding Runtime Optimization
Interviewer: "Can you improve the runtime of this function?" Me: shitpost.py from threading import Thread thread = Thread(target=my_function, thread.start() while (thread.isAlive()): time.sleep(-1) Interviewer: Outstanding move
A programmer responds to an interview question about improving a function's runtime by starting it in a thread and then using an invalid negative sleep in a loop. The interviewer ironically praises this obviously flawed code as an “Outstanding move,” parodying enthusiastic chess commentary.
- @dev_meme / 267 2019-03-25
- @dev_meme / 3415 2021-07-13
- Type
- image
- Size
- 640×792 · 61.7 KiB
- Mood
- sarcastic, absurd
- Language
- en
- Added