Software Enginner Interview Questions

420,103 software enginner interview questions shared by candidates

I am playing a card game called 24. Cards ace to king are numbered 1 to 13. During a given round, I am provided four cards to play with from the shuffled pack. If the numbers from the four cards result in 24 then I win the round if I shout '24' first. How would you code a function for this?
avatar

Software Engineer

Interviewed at Google

4.4
Dec 14, 2009

I am playing a card game called 24. Cards ace to king are numbered 1 to 13. During a given round, I am provided four cards to play with from the shuffled pack. If the numbers from the four cards result in 24 then I win the round if I shout '24' first. How would you code a function for this?

Viewing 1241 - 1250 interview questions

Glassdoor has 420,103 interview questions and reports from Software enginner interviews. Prepare for your interview. Get hired. Love your job.