Implement a solution for the bounded buffer problem where you have a queue of work items and several producer/consumer threads.
Development Interview Questions
137,347 development interview questions shared by candidates
Convert string to number. "123" to 123
1. Implement stack using queue 2. Merge two arrays and sort them in order as specified at runtime. The two arrays may share common entries between them, but the resultant array must not have duplicates.
Generally covers all data structures and Algorithm question types.
Challenge
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.
Rearrange digits of a number to find the largest possible number in O(n) time.
write a function to find the n-th fibonacci number
I was asked a couple coding questions, a couple design problems on concurrency and scalability, but most of my interviews were discussions about past projects and experiences.
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.
Viewing 1291 - 1300 interview questions