Determine whether 4 elements in an array sum to 0 in O(n^2) time.
Desarrollador Sr Java Interview Questions
714,024 desarrollador sr java interview questions shared by candidates
How many ways can an ant travel through all of the corners of a cube? Constraints were that each corner cannot be visited twice. How many ways can an ant start at a corner move through all adjacent corners and return to starting position?
- Given a real-time list of traded stocks, need to get the last N (arbitrary) unique traded stocks. Write addTrade(string ticker) and getLastNUnique(int n) functions with efficient runtime.
2, 3, 5, 7, what comes next
Implement singleton
find min of array that decrease then increase, like [5,4,3,2,1,2,3,4,5]
Say that you have an infinite amount of sorted data coming in, implement a way to find a specific time stamp.
Find the height of a tree, and then find the longest path in a tree.
You have 12 marbles, out of which only one is of different weight. You dont know if its less or more than the others. what is the lest number of weighings you have to make to find it.
Given an int array int list = {4,5,6,1,2,...} and an integer int target = 8 Write a function to return all the pairs (x, y) in the integer array that x + y = target (remove the duplicate one)
Viewing 2261 - 2270 interview questions