You have a chest of 8 drawers. With probability 1/2, you put a letter in one of the drawers. With probability 1/2, you don't put a letter in any drawer. I open the first 7 drawers, all are empty. What is the probability there is a letter in the 8th drawer?
Developer Interview Questions
268,850 developer interview questions shared by candidates
Design a vector that can grow with the size with time complexity of O(1)
Take in an Int array and move all the zeroes to the end in place. It doesn’t matter how the non-zero numbers are ordered. Preferably as efficient and as space efficient as possible. Example: Input : [ 3, 0, 2, 0, 0, 4, 1, 0 ] Accepted Output: [ 4, 2, 3, 1, 0, 0, 0, 0 ]
Tell me a palindrome date before 10-02-2001 (mm-dd-yyyy)
Write a function that would calculate a Pascal triangle element, given its coordinates.
Assume that you are given the head and tail pointers of a doubly linked list where each node can also have a single child pointer to another similar doubly linked list. There are no cycles in this structure outside of the traditional double links. Write a procedure in C++ that flattens this structure into a single list.
Write a program to print the series 4,6,12,18,30,42,60,72
1.Given two words find if they contains the same letters , if one letters occurs multiple times in word then second word also should have the number same number of times. eg: little and title are different, das and sad are equals. 2. Rearrange all the letter of a word in ascending order while removing the duplicate letters. eg:- letter should be printed elrt.
What is the angle between the two arms of the clock at 2:40?
Ios related question multi thread etc
Viewing 101 - 110 interview questions