Basic 2 sum problem. Finding pair of numbers that add to current sum.
Development Interview Questions
137,332 development interview questions shared by candidates
how to make it O(n)
Standard coding and design questions. Some questions about my background. A tedious question was to convert a string representing a roman number to an integer. This question is not hard to solve, but tedious to code.
Given a 2D array of boolean values determine the largest square sub-array containing only 1s.
Describe the most challenging problem you've had and how you solved it?
Questions were not difficult but my English was a little bit poor. Also my solutions were the first solutions that came to my mind and I think they asked for a better algorithm for the Development Lead position. Questions were: You have 3 integer arrays, find the common items that exist in at least two of the arrays; Write a program to create a histogram of the top 5 most used words in a file.
It is easy, look online for questions and how to solve them
Reverse the letters of words in a sentence. Then, reverse the sentence.
Coin algorithm - I forgot the exact number, but we had 1, 5, 10, 25 cents and based on the number of cents, calculate the least number of coins to achieve the given values.
write a function to find the n-th fibonacci number
Viewing 1311 - 1320 interview questions