Comment

Comment by tlocke

I know the light switch idea as Thomson's lamp:

https://en.m.wikipedia.org/wiki/Thomson%27s_lamp

I used it as an interview question many years ago. I wasn't very rigorous about it, basically any plausible answer was good enough for me. Answers fell into two categories, the theorists (it's an infinite series that doesn't converge) and the pragmatists (you couldn't physically do it).

parent tlocke 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton