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?
Engineer Software Interview Questions
512,139 engineer software interview questions shared by candidates
Do you need to use the restroom?
Given a restaurant menu and a budget, output all the possible ways to use up the budget.
Write a code to construct a tree. It should get a string and generate related tree.
Compare 2 different strings which only differ in one bit, and analyze the time and space complexity of your algorithms. Follow up: two strings are very long so that we do not have enough space for the hashmap.
Find some certain substrings in a array of strings.
Return k smallest element in a tree
given rand5() that return 1-5 uniformly produce rand7() that returns 1-7 uniformly
Given unsorted sequence of billions of numbers that cannot all fit in memory at the same time, find the median of these values.
2.Write a C/C++ program to compute sum of N numbers.
Viewing 1451 - 1460 interview questions