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
case questions such as how many degrees are between the hands that make up 2:45 on a clock was challenging.
"What do you know about our company?" "Do you have some questions for me?"
Questions were easy. Just normal interview questions.
How would you implement int atoi ( const char * str );
I had one question for each interview and both were probability puzzles. Here is the tougher one: you have a bag of N strings, and at random, you pull out a end. You pull out another end and you tie the two ends together. You take another two string ends and tie them together. You repeat this until there are no loose ends left to pull out of the bag. What is the expected number of loops?
I was to asked to code a function that computes the product of two numbers in string form and outputs the result in the string form.
Imagine we're in a 30 mile race, where I'm traveling 45mph the entire time and you travel 30mph for the first 15 miles. How fast would you have to travel the remaining 15 miles to beat me?
Viewing 351 - 360 interview questions