To return the 'm' smallest numbers from a file of 'n' numbers
Software Enginner Interview Questions
419,567 software enginner interview questions shared by candidates
Rand(7) from Rand(5)
Write a function that divides one number by another, without using the division operator, and make it better than O(n).
get the second most highest integer from an array
The question was pretty basic and involved some data collection and analysis. I also needed to write the time complexity of my solution. In addition write several uni tests for the solution.
Implement a stack using two queues.
Given an array of sorted integers where duplicates are allowed, find the index of the first number I give you?
In a binary integer value tree, find the lowest level common ancestor of two values.
The written exam was of 1 hour and included the following questions: (1) Write a function that will receive a string as an input and will return the string in reverse order. (2) Write a function that will print the following series of numbers using only one loop: "1,2,3,4,5,6,7,8,9,10,9,8,7,6,5,4,3,2,1" (3) Write a function that will print all the multiples of 3 between 1-200 ( in reverse order ) There were other programming questions as well but of the same difficulty level. Along with the coding questions there were some analytical and QA questions as well. And for me the best part of this exam was there's no language specification. You can answer all the coding questions in whichever programming language you are comfortable with. So, after giving the exam I was impressed to know that they basically want to see how much problem solving skills do you have rather than evaluating you by the number of languages and frameworks you know.
Write a power function power(a , b) returns a^b
Viewing 271 - 280 interview questions