There are 6 red, 2green 3 yellow and 4 orange balls in the box. What is the probability to pick 2 balls that are either green or yellow?
Intern Interview Questions
248,704 intern interview questions shared by candidates
Suppose you have two covariance matrices A and B. Is AB also a covariance matrix? Suppose that, by plain dumb luck, we also have that AB=BA. Is AB a covariance matrix under this additional condition?
Expected value of heads and tails of two coin flips -> E(t(10-t) = 10E(t) - E(t^2) = 50 - (25 + 10/4) = 22.5 What is the set of numbers between 2 and 30, without the same common factor (e.g. 26 and 24 share 2, so they cannot be in the same set) that will you give you a max sum? Using the same rules, what is the highest possible number you can have in a set of 1000?
How many times does the digit 1 appear in all numbers from 1-1000000 inclusive
Say I take a rubber band and randomly cut it into three pieces. What's the probability that one of the pieces has length greater than 1/2 of the original circumference of the rubber band.
Given a sorted array, write a program to decide if two elements sum up to a third.
An optimal algorithm to check whether a hand of cards was a full house (in Poker) or not.
Basic Maths, probability, a brain teaser. suppose you are standing at 1/3 the length of a bridge and you hear a train coming from backwards. You have just enough time to run back and get off the bridge before the train hits you. You also have just enough time if you decide to run forwards. What is the relative speed between you and the train.
There is an NxM grid containing a robot at (1, 1) and a destination at (N, M). Robot can move only up or right. Some locations can have obstacles. Find the number of unique paths from (1, 1) to (N, M). What is the time complexity of your algorithm?
There are 20 floors in a building. If you're on an elevator and you're trying to get to the 20th floor, what is the probability that 4 people ahead of you click the 20th floor before you do? Assuming you click last.
Viewing 31 - 40 interview questions