Write a power function power(a , b) returns a^b
Intern Interview Questions
249,570 intern interview questions shared by candidates
Given two sorted arrays. Write a method that returns the intersection of the arrays. Ex. [2,4,3,6] and [8,9,2,4] would return [2,4].
Given a TV remote, write a script that would give directions to input some letters. Starting from the upper left-hand corner. If the buttons were in 3 columns, and you wanted to type "feed", you would want the output of the program to say "right, right, down, PRESS, left, PRESS, PRESS, left, PRESS"
Generate a new array from an array of numbers. Start from the beginning. Put the number of some number first, and then that number. For example, from array 1, 1, 2, 3, 3, 1 You should get 2, 1, 1, 2, 2, 3, 1, 1 Write a program to solve this problem.
Given a list of 4 billion integers, find an integer not in the list using 4MB of memory.
If you could travel anywhere in the world where and why?
why this position
How would you implement a stack with the additional operation of getMin?
Given a function for a fair coin, write a function for a biased coin that returns heads 1/n times (n is a param).
Why are you interested in this position?
Viewing 71 - 80 interview questions