Qualidade De Software Interview Questions

36,477 qualidade de software interview questions shared by candidates

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
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.

Viewing 61 - 70 interview questions

Glassdoor has 36,477 interview questions and reports from Qualidade de software interviews. Prepare for your interview. Get hired. Love your job.