You have 4 aces and a king in a set of cards, what's the probability of get kind before all aces.
Developer Interview Questions
269,104 developer interview questions shared by candidates
Sequence of numbers in random order and 1 of them is missing how to find that out...
The second question is that there are 8 buttons, 7 of them are some, one is a bit little heavier, and you have a balance, how could find the heavier one, you can just use the balance twice.
How do you find the middle of a linked list, rounding up in the case of an odd number of items but with no differentiation between an even or odd number?
Within 2-3 hours write a program that reads words from a large file, counts how many times an individual word occurs and output them in the order of decreasing number of occurrences. The language doesn't matter, just negotiate the programming environment you prefer in advance.
Given a sequence consisting of letters and numbers, re-arrange the sequence so that the numbers come together first, while maintaining their initial order in the sequence (not allowed to use additional memory) e.g. Input : 12gh45fd3, Output : 12453ghfd
The 2-minutes part is a bit unexpected, I am not a native language speaker, I read a bit slow, so I can only finish about 60% percent of the questions.
Choose any programming language of your choose and write a for loop that counts backwards from 10.
Find the dominator in an array.
Implement a method 'find' that will find the starting index (zero based) where the second list occurs as a sub-list in the first list. It should return -1 if the sub-list cannot be found. Arguments are always given, not empty. Sample Input 1 list1 = (1, 2, 3) list2 = (2, 3) Sample Output 1 1 Explanation As second list (2, 3) is sub-list in first list (1, 2, 3) at index 1 Sample Input 2 list1 = (1, 2, 3) list2 = (3, 2) Sample Output 2 -1
Viewing 361 - 370 interview questions