Manager I Interview Questions

27,475 manager i interview questions shared by candidates

write an algorithm to determine is "happy" ... a number is happy if the sum of the square of the digits ever equals one. An example of a happy number is 19: 1^2 + 9^2 = 82 8^2 + 2^2 = 68 6^2 + 8^2 = 100 1^2 + 0^2 + 0^2 = 1 If it is not happy then it will eventually hit repeat back to a number that it already saw
avatar

Software Engineer I

Interviewed at CareerBuilder

3.6
Feb 12, 2015

write an algorithm to determine is "happy" ... a number is happy if the sum of the square of the digits ever equals one. An example of a happy number is 19: 1^2 + 9^2 = 82 8^2 + 2^2 = 68 6^2 + 8^2 = 100 1^2 + 0^2 + 0^2 = 1 If it is not happy then it will eventually hit repeat back to a number that it already saw

Four people come to a river in the night. There is a narrow bridge, but it can only hold two people at a time. They have one torch and, because it's night, the torch has to be used when crossing the bridge. Person A can cross the bridge in 1 minute, B in 2 minutes, C in 5 minutes, and D in 8 minutes. When two people cross the bridge together, they must move at the slower person's pace. The question is, can they all get across the bridge in 15 minutes or less? Write an alogorithm to solve the puzzle.
avatar

QE

Interviewed at Zynga

4.1
Jul 4, 2012

Four people come to a river in the night. There is a narrow bridge, but it can only hold two people at a time. They have one torch and, because it's night, the torch has to be used when crossing the bridge. Person A can cross the bridge in 1 minute, B in 2 minutes, C in 5 minutes, and D in 8 minutes. When two people cross the bridge together, they must move at the slower person's pace. The question is, can they all get across the bridge in 15 minutes or less? Write an alogorithm to solve the puzzle.

You've a singly linked list where every node in the list has a field "random" which points to other node in the same list. Write a function to clone this list (create a new copy of the same). Don't use extra space (just the pointer variables are fine).
avatar

Software Development Engineer I

Interviewed at Microsoft

4
Aug 17, 2012

You've a singly linked list where every node in the list has a field "random" which points to other node in the same list. Write a function to clone this list (create a new copy of the same). Don't use extra space (just the pointer variables are fine).

Viewing 71 - 80 interview questions

Glassdoor has 27,475 interview questions and reports from Manager i interviews. Prepare for your interview. Get hired. Love your job.