Given a set of cities, each with a given population, select randomly a city with a probability that is proportional to the population.
Engineer Developer Interview Questions
467,806 engineer developer interview questions shared by candidates
Describe what happens when a user clicks a link in a browser.
Design a data structure for LRU cache
Implement a function boolean matches(String text, String pattern) to find match pattern in the string, pattern can be seperated but the order of letters in pattern cannot be changed.
Add a new range with a given list of ranges by combining the new range instead of overlapping. For example: 1-4, 6-7, 10-12; add 9-11 Should return 1-4, 6-7, 9-12
Maximum rectangular area under a histogram.
This was one of the more standard questions. You have stairs with N number of steps. You can take either one step steps or two step steps; how many ways can you climb the stairs?
1. merge two sorted lists. 2.merge k sorted lists He asked followed up questions about memory allocation, difference between heap and priority queue, , time complexity and a few issues with my STL usage.
Write code to determine if a given input string contains balanced parentheses.
Viewing 2091 - 2100 interview questions