give you 3L bottle and 5L bottle, to get 4L water.
Software Engineer Interview Questions
467,290 software engineer interview questions shared by candidates
Given a dollar value, write a function that calculates the number of possible coin combinations that make up that value.
I've been asked three questions. The only one I missed is quite a basic question:If you want to do something before Java GC recycle the object?
You have a given set of prices in an Array, find at which price you should buy and at which price you should sell so that you maximize the gain
Given a array of a series of characters (char array from string) reduce multiple spaces to a single space, while preserving the other characters. The swapping needs to take place within the initial array.
puzzle: there are 2 cans of size 4 liter and 7 liter. how can you get 2 litters of milk from it.
Suppose you have a huge collection of integer values, in an array or a list or some similar data structure. Now suppose there are exactly two appearances of all integers, except one. In other words, each integer appears twice, in some random order, except 1. How would you find that 1 integer.
Given a sequence of integers and an integer total target, return whether a contiguous sequence of integers sums up to target.
1. K-th largest number in the array
Say the program you are running has stack overflow. You want to know when and where this happens, but you don't want to use debuggers, because they slow. How would you do this?
Viewing 1891 - 1900 interview questions