Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.
Intern Interview Questions
249,615 intern interview questions shared by candidates
You got some baby bottle samples. You would like to know the max height you can drop it without breaking the bottle. Let set the unit as 1 foot. And the highest height you can reach is at N feet. So how would you find the (max) safe height?
if you have 12 balls and one was lighter than the rest, how would you figure out the lightest on in one try
How many layers are there in OSI
You have an array of red balls and blue balls. Sort them in linear time and constant space so that all the red balls are in the front, and all the blue balls in the back.
Find the Heaviest ball in 9 given balls by two times
How would you sort an array if you had infinite RAM? Infinite memory?
What is the difference between a FlipFlop and a latch?
Connect Four is a game where two players take turns dropping their color discs into a vertically suspended grid. The game ends when a player adds a disc to the playing grid that connects four discs of their color. The connected discs can be in a horizontal, vertical or diagonal line. Write a function to be called after every turn that returns true if the game is over (and false otherwise).
case questions such as how many degrees are between the hands that make up 2:45 on a clock was challenging.
Viewing 351 - 360 interview questions