if there are 9 white balls and 7 black balls in a bag .You have to take out balls one by one from the bag.then in how many attempts you wilk get a matched pair
Software Interview Questions
747,653 software interview questions shared by candidates
String foo = "abc"; String foo1 = "abc" what does (foo == foo1) evaluate to?
hackerrank problems
The question was asked in the personal interview. You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. Write a program which computes in how many distinct ways can you climb to the top.
If you toss a coin n times, what's the expected value of n if you get the 2nd head?
None of the questions were unexpected, at least for any candidate applying for this job. I definitely felt I could have answered few questions better.
Given a list of "threads", which contain 2 variables - starting and ending times - implement a function that will return all running threads at some time t. Optimize it. (faster than O(n) )
How do you find 2 missing elements in an array of consecutive integers that are not sorted who's size is N-2.
Search on an unsorted list with a time complexity of O(logn)
Iterating through a k-dimensional array given size of each dimension in an array.
Viewing 681 - 690 interview questions