I don't get it, why does this work, but quadratic formula doesn't?
Remember this GroupBy, interviewers love asking about this particular linq functionality.
The author's solution was something like this, I just translated it to C#.
I didn't even think of converting to a binary string. This is really brilliant. It works for negative numbers because of two's compliment. I simplified some of the Linq logic.
Thanks for your kind words! I try my best to make my code as readable as possible.
I wonder if ill ever be able to produce such beautifull code. This is so clear. I started 8 months ago with C# and this is where I hope to get to.