Find the nth fib number
Interns Interview Questions
248,188 interns interview questions shared by candidates
An analytical question about: Say you have ten stacks of coins with ten coins in each stack, each coin weighing 1g. However, one of the stacks has 2g coins instead of 1g coins. If you have a weighing scale and can only make one measurement, how do you determine which stack of coins weighs 2g each coin?
Which of the following gives you the highest expected value: the square of a singular die roll, the product of two dice, or the square of the median of three dice roll?
Write an algorithm to construct run length encodings of arbitrary strings where repeated instances of the same character get replaced with [number of times character appears] + [character]. For example, "xxxxxx" becomes "6x". It should be unambiguous and the compressed string should always be shorter.
Use basic arithmetic operations (+-*/) to implement sqrt function.
Given a string write a function which prints all the subsets of the string. Now make the function to return only unique solutions. For example if they give you "abc" you print out a ab abc ac b bc c Now for the unique solution constraint, if they give you "aba" the output should be: a ab aba b
Given N credits cards, determine if more than half of them belong to the same person/owner. All you have is an array of the credit card numbers, and an api call like isSamePerson(num1, num2).
Signed an NDA, so I will not post the questions.
I signed NDA for online assessments. For the phone interview, questions about DS and string manipulation. Should be good if can solve medium level HackerRank or Leetcode problems.
Implement integer division without using / or %. Questions about running time. Can you do it faster?
Viewing 111 - 120 interview questions