Developer Advisor Interview Questions

711,055 developer advisor 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 1651 - 1660 interview questions

Glassdoor has 711,055 interview questions and reports from Developer advisor interviews. Prepare for your interview. Get hired. Love your job.