Having a function that generates only 0 or 1, write a function that using the above function to generate integer in the range [0, n] with n given, and by giving same chance to all the numbers by calling only that function.
Engineer Internship Interview Questions
23,876 engineer internship interview questions shared by candidates
One question they asked me was how to find out if a list was a cycle in O(n) time
Given a string and a word list, find how many words could be find in the string. The characters to form a word in the string is the subsequence, not necessary to be concatenate.
describe a thing that you are proud of
Determine if two rectangles intersect.
Graph question involving some advanced algorithms
Numbers from 1-100 are stored in an array but one number is missing find the missing number? Minimum time complexity and memory
Given two arrays one with expected numbers and other with actual numbers determine which number is missing in the actual array
Tell if an input string of parenthesis was balanced
Given the scores of a tennis game, who won?
Viewing 181 - 190 interview questions