News for hackers. Stuff that matters.
Re:Steve Ballmer's incorrect binary search interview question by Salgat on Tuesday September 03, 2024 @06:43PM (#41440058)
In electricity we do the same. Measure continuity at the halfway point to see if the wire is broken on that half. Rinse and repeat.
Re:Steve Ballmer's incorrect binary search interview question by Tor3 on Wednesday September 04, 2024 @07:22AM (#41444341)
That's what we did in electronics too. There were kits with electronic circuits (this was back in the day with transistors.. and a bit more), where the teacher would introduce a fault somewhere. What we were taught was to start measuring signals in the middle, and then continue just like a binary search. This became so natural that when I ended up in programming in my first job I automatically did the same when searching for bugs in software. What surprised me was that other people didn't.