Give the count and the number following in the series. for e.g 1122344 first line output : 21221324 next line : 12112211121214 and so on...
Software Engineers Interview Questions
419,700 software engineers interview questions shared by candidates
Given array find 3 elements that sum up to 0.
Given a binary tree, which is not necessarily balanced, print the nodes in the tree in a level-wise manner. Also, nodes on the same level should be printed on a single line. A modification of the question was added later in which I cannot really add a "level" variable in the structure of the node in the tree.
Create a data structure that minimizes time complexity of retrieving median and inserting new element. Getting median should be O(1) and insertion should be O(log(n)).
Write an algorithm to verify if a tree is a binary search tree.
Divide two numbers without using / or % and return quotient.
Find the two largest numbers in an array
Given a log of users visit to a site for a day, how would you find returning users given the log visit for another day
Using only putchar how would you print out the ascii values for each digit in an integer. For example if the integer was 123, then you would want to print the ascii values for 1, 2, and 3.
Given an infinite stream of numbers, find the top 50 integers. What's the data structure to use, and what's the time complexity.
Viewing 691 - 700 interview questions