News for hackers. Stuff that matters.
Re:Leetcode has taught me that I'm a bad engineer by kkjjkgjjgg on Wednesday January 05, 2022 @10:48AM (#29810410)
OK I missed that - that does make it harder indeed.

Also I must admit I used to enjoy such tasks more in former years, now it seems more like a needless chore. On the other hand, somehow I feel compelled to solve games like "Human Resource Machine" or "Infinifactory", which can be equally tedious.

I'll try to solve that leetcode task.

Re:Leetcode has taught me that I'm a bad engineer by wan23 on Wednesday January 05, 2022 @01:52PM (#29813250)
For more points, try solving it in 25 minutes without running the code (i.e. as if it were on a whiteboard), and produce an answer that you're confident doesn't have any major errors, and be able to explain why it's logarithmic time. When you're done with all that, then run it and see if it passes. If not, you fail!
Re:Leetcode has taught me that I'm a bad engineer by kkjjkgjjgg on Wednesday January 05, 2022 @03:45PM (#29814668)
Demanding code that runs is silly, I agree. I think it can be valid to see how people cope.

I was once asked to produce the proof of the theorem of Pythagoras, which I hadn't thought about for many years. I failed to do it in the interview situation and later did it at home. However, I enjoyed the interview and I was also offered the job.