Algorithms for Interviews Comments

Comments

  • I'm a Java guy(beginner) , can someone tell me what is the answer to question #3 ?

  • Here's the simple JavaScript answer: doSomething = function(){}

  • Is the "prize" suit for every test case numbers from 1 to 13? If it is why the correct output doesn't sum 91 for every test case?

  • It's true that each side needs to play (and lose) 13 cards, and 13 cards in total will be won. But you can play the cards you won as well so you can end up with high or lower totals depending on how you play them. (The test cases don't need to be realistic though).

Contact Us
Sign in or email us at [email protected]