given rand5() that return 1-5 uniformly produce rand7() that returns 1-7 uniformly
Developer Interview Questions
640,426 developer interview questions shared by candidates
2.Write a C/C++ program to compute sum of N numbers.
Given a restaurant menu and a budget, output all the possible ways to use up the budget.
You have a sentence with several words with spaces remove and words having their character order shuffled. You have a dictionary. Write an algorithm to produce the sentence back with spaces and words with normal character order.
Given a binary tree, print out the whole tree by levels
Do you need to use the restroom?
Find and return the first duplicate integer in an array in O(n) time and O(1) space. Assume there will always be at least one duplicated integer in the array.
Do company tagged leetcode questions.
Given two arrays of sorted integers, how would you find the minimum difference in O(n) time.
how many blocks on an n x n megablock are not on the edge?
Viewing 1421 - 1430 interview questions