You roll a die and get the amount you roll in cash. How much should you pay to play this game? What if you don't like your first roll and are allowed to roll exactly once more (but you must take what you get the last time)? What if you can roll up to thrice? Infinitely many times?
Intern Interview Questions
248,749 intern interview questions shared by candidates
Explain tail recursion.
You have a number, and the product of its digits is 96. None of the digits is 1. What is the largest and smallest number you can think of?
I'm thinking of an integer with no 0s or 1s. When you multiply all the digits of the number together, you get 10,000. What is the largest number I could be thinking of? The smallest such number?
How are you doing today
Count number of consecutive ones and find the second greatest element in the array.
why pepsi
You are given a sorted list of distinct integers from 0 to 99, for instance [0, 1, 2, 50, 52, 75]. Your task is to produce a string that describes numbers missing from the list; in this case "3-49,51,53-74,76-99".
why tax?
Give the sizeof of the following struct : struct{ char a,b; int c; }
Viewing 391 - 400 interview questions