2 ms·
I was asked to write code to solve this problem during an interview once: "You are driving at a constant speed. After a while, you pass a mile marker with a tw
by innocentoldguy 12y ago
I was asked to write code to solve this problem during an interview once:
"You are driving at a constant speed. After a while, you pass a mile marker with a two-digit number on it. One hour later, you pass another mile marker with the same two numbers on it, but in reverse order. In another hour, you pass a third mile marker with the same two digits separated by a zero. How many miles per hour are you traveling and what numbers were on each of the mile markers?"
When I started working at the company, what was the first thing they had me do? Convert all the tabs in their Ruby source files into spaces.
That right there is the problem with whiteboard questions.