A very brave thing to write. Don't judge your self on how the dice fell. By just having tried you've done more than most people ever will.
HN user
ssfermoy
shanesheehansemail@gmail.com
Glad you like it. Heard this as an interview question at a trading company. Gave something similar to your solution and was asked for a better one, eventually work my way to the solution above but was given no indication if it was what they wanted. It wasn't a pleasant experience.
If they decide the guy at the back indicates an odd number of black hats by saying white or an even number of black hats by saying black. Now the remaining prisoners all live and the back guy has a 50/50 shot.
http://sciencevsmagic.net/geo/#0A1.1A0.2A0.N.2A0.4A0.5A1.3A0...
Here's how I did it.
This is great I've been looking for an excuse to learn Clojure and I have access to the same model drone.
As an aside this talk is amazing, even more so if you've had any exposure to control theory.
http://www.youtube.com/watch?v=C4IJXAVXgIo
(if you get bored the best bit is at 20min)
The best things about D3 are how well documented it is and the volume of examples available: http://bl.ocks.org/mbostock
I wanted to map a few tweets the other day and the examples helped a lot
For me Firefox seems not to work with this.innerText . Instead you can use this.textContent to get it to work.