8 points · by LucaPaterlini · 2y ago · 23 comments
Maybe one of the users forgot to cache their deps (:
Heck, let's go even further. All the computers I've used have a fixed amount of memory, addressable by a u64, so I guess all my algorithms are constant time now.
I guess we've solved the interview, folks.
If we considered the bits of integers as the smallest unit of work in all cases (it is of course relevant to consider bits as the unit of work in some cases), then big-O notation becomes a lot more tedious without typically adding more value.
See: https://cs.stackexchange.com/questions/140642/silly-question...
https://en.wikipedia.org/wiki/Big_O_notation#Orders_of_commo...
This is the difference between a mid-level and a senior engineer during an interview. The latter will explain to you the pitfalls of what you are asking for before even considering writing a line of code.