Software Engineer C Interview Questions

665,683 software engineer c 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 1421 - 1430 interview questions

Glassdoor has 665,683 interview questions and reports from Software engineer c interviews. Prepare for your interview. Get hired. Love your job.