I think you're right and the given answer of 596 is wrong. It's 380 m-w, 190 m-m, 45 w-w handshakes, so 615 in total.
76 karma · joined July 23, 2013
Regards
Solve 100s of these problems(start with easy ones and move into harder ones at your ease, learn new concepts and algos as you go) and try the interviews again in another 6 months. I promise, you'll improve a lot at this kind of problem solving. I've seen a number of people do this and succeed at algo interviewing game.
1. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guid...
I believe the biggest advantage with a good static type system is that programmers can design good datatypes and specify their relationships - and the compiler can then detect any inconsistencies(ideally anyway).
Could you explain more?