The
following ten problems mostly asked in a data science interview. We recommend
you when you go for a data science interview. First of all, you must update
these ten questions.
No 1: four
characters a, b, c, d, need to pass a bridge at right, and they have only one
torch. The bridge is too risky to cross. Without a torchlight and is strong
enough to support a maximum of two people at a time. They take 1, 2, 5, and 8
minutes sequentially. What is the shortest time required for all four of them
to cross the bridge?
No 2: there
are 100 black shoes and 100 white shoes mixed up in a drawer? If you have to
pick shoes blindly from the drawer, how many shoes do you want to take out to
be sure that you have a matching pair of shoes?
No 3: there
are nine balls that weight the same except for one, which is hefty than the
others. What is the maximum number of weighing should? Do you perform to find
the ball with a higher weight?
No 4: there
are 100 doors are all closed. A person walks through these 100 doors 100 times.
Each time he toggles some of the doors, for example, closes if open and open if
it is closed. Firstly, he will toggle all the doors secondly will toggle every
second door thirdly will toggle every third door. So after the 100th walk,
which entries will be open and which we are closed?
No 5: there
are two sand times which show 4 minutes and 7 minutes individually. What would
be the best approach to get a time of 9 minutes using both the sand timers, at
one time or one after another, or in any other combination?
No 6: there
are four men a, b, c, and d buried up to their necks in the ground in a
straight line? There is an opaque wall between a & b. They cannot move and
can only look forward such that a and b can only see their respective sides of
the walls and c can see b, and d can see b and c. They are all aware that each
of them is wearing a hat, and that two of them are wearing a black hat while
the other two are wearing white hats. They don’t know what color they are
wearing. To avoid being executed, one of them must call out to the executioner
the color of their hat. If they get it wrong, everyone will be sort. After 60
seconds, one of them calls out. Which one of them calls out? How can sure he
knows the color of his hat? There's no outside influence and no other way of
communicating.
No 7: there
are two ropes and a lighter. The string takes precisely 60 minutes to burn
completely. But rope doesn't burn at a constant rate, so you do not know that
half the rope burn in 30 minutes. For instance, if one end of the string is it,
it may take 55 minutes to the first half of it, and 55 minutes to burn the
second half. How can you measure exactly 45 minutes by burning the ropes?
No 8: there
are two jars with 50 yellow marbles and 50 orange marbles. You place all the
marbles in jars in such a way that if you blindly pick one marble out of that
jar. You can arrange the marbles however
you like, but they must be in the air.
No 9: how
many times a day do the minute and hour hands of a clock overlap?
No 10: at a
party, everyone shook hands with everybody else. There were 66 handshakes. How
many people were at the party?
Data Science , developers , Interview Preparation , interview questions , programmer
No comments:
Post a Comment