Write a function where, given an index, you return the Fibonacci number at that index.
Interns Interview Questions
248,284 interns interview questions shared by candidates
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.
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?
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 361 - 370 interview questions