Given a very long string composed of numbers as characters, find the four character substring that has the largest multiple. For example, given the string "809723", the two char substring with the largest multiple is "97", having a multiple 9*7 = 63.
Developer Interview Questions
270,915 developer interview questions shared by candidates
questions based on your test, problem solving approach, java multithreading, query optimization etc.
Merge to sorted arrays into second array, both arrays has N elements, but second array size is N * 2. So you merge both arrays in second array in a sorted way.
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?
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.
You have 4 aces and a king in a set of cards, what's the probability of get kind before all aces.
Sequence of numbers in random order and 1 of them is missing how to find that out...
Given a list 1,0,3,5,0,0,34,5,0,36 push all the zeroes to the end. Develop an in-place algorithm
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
given numbers 1 4 2 0 2 0, move all zeros to beginning using minimum sorting technique
Viewing 361 - 370 interview questions