6 ms·
If you are the type of person who writes a big brain log(n) solution instead of n solution when there is no real reason (compute wise) and the log(n) is a pain
by eadwu 2y ago
If you are the type of person who writes a big brain log(n) solution instead of n solution when there is no real reason (compute wise) and the log(n) is a pain in the ass to maintain.
I hope I never see you in my team.
- slashdave 2y agoThere is a lot to say about this. Due to technical limitations, the Leetcode site uses odd corner cases in their test suite to guide practitioners to specific, bespoke solutions. It's kind of insidious.
- beaconify 2y agoYes! Just say give me o(log(n)) dollars! Ah now you care about n and k.