Escalator

An escalator is moving down. A person who comes down with normal speed, takes 50 steps to come down. Another person, who is slightly faster, takes 90 steps to come down. The time taken by the first person to move 10 steps is the same as the time taken by the second person to move 90 steps.

What is the total number of steps visible when the escalator is not moving ?

Note: The faster person takes more steps because, if you don't move at all, you take 0 steps and you come down, and your speed is still slower !
LVL 37
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Commented:
We'll call the 50-step person A, and the 90-step person B.

Let the number of steps be x.
Let the elevator move at n steps per second.
For person A, the elevator moves x - 50 steps.  The whole trip takes (x - 50) / n seconds.
For person B, the elevator moves x - 90 steps.  The whole trip takes (x - 90) / n seconds.
Person A's trip takes 5 times longer than person B's trip.
ergo,
(x - 50) / n = 5 * (x - 90) / n
x - 50 = 5x - 450
400 = 4x
x = 100
0
EngineerAuthor Commented:
Yeah, I thought it so, but the answer given is 150..

Any ideas ? or is it wrong ?
0
Commented:
snoyes_jw:  Your equation negates the impact of the speed of the escalator.  Is it possible that the speed of the escalator is relevant?  Common sense seems to dicate that it would be, but your math seems good.
0
Commented:
If the speed of the escalator mattered, it would need to be provided in the the question to produce an answer.  It isn't given, so it must not matter.
0
Commented:
Hi Harish!

I think this is just a more drivvelled version of snoyes_jw's one but:

If escalator has 150 steps and escalator moves at x seconds per step -

In 50 steps for person A, escalator has moved 150-50=100 steps and therefore takes 100x seconds.
Person A took 50 steps in that time so walked at a speed of 50/100x steps/second or 100x/50 seconds/step so 10 steps would take 1000x/50 or 20x seconds.
In 90 steps for person B, escalator has moved 150-90=60 steps and therefore takes 60x seconds.
Person B took 90 steps in that time so walked at a speed of 90/60x steps/second or 60x/90 seconds/step so 90 steps would take 5400x/90 or 60x seconds.

Different! Therefore either 150 is wrong or I am wrong - probably the latter.

For an n-step escalator:

In 50 steps for person A, escalator has moved n-50 steps and therefore takes (n-50)x seconds.
A took 50 steps in that time so walked at a speed of 50/(n-50)x steps/second or (n-50)x/50 seconds/step so 10 steps would take (n-50)x/5 seconds.
In 90 steps for person B, escalator has moved n-90 steps and therefore takes (n-90)x seconds.
B took 90 steps in that time so walked at a speed of 90/(n-90)x steps/second or (n-90)x/90 seconds/step so 90 steps would take (n-90)x seconds.

So

(n-90)x = (n-50)x/5   (and x IS therefore irrelevant)

or

5n - 450 = n - 50 -> 4n = 400 -> n = 100

The book loses?

Paul
0

Experts Exchange Solution brought to you by

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Commented:

Slower person's speed is  x steps per sec and
Faster person's speed is 9x steps per sec

Slower took total 50 steps
so time taken = 50/x

Faster took total 90 steps
so time taken = 90/9x = 10/x

Time taken ratio]

slower:Faster
5:1

now for this time escalator moved with constant speed so
moved step ratio by escalator in case of slower and faster will be
5:1

so steps can be

5k and k

totals steps for slower = 5k + 50
totals steps for faster = k + 90

so

5k + 50 = k + 90

5k = k = 90 - 50

k = 10

so Total steps are 5k + 50 or k + 90

0
EngineerAuthor Commented:
Thank you all for confirming my answer :)

Is there any chance that the problem is worded badly and it should have been something else, so that the answer comes to be 150 ?

It is not a problem given in book, it was asked in an interview !
0
Commented:
Perhaps the point of the question is more about your confidence in your own results, and your tact in asserting the the interviewer is wrong...
0
Commented:
Perhaps they messed up and the time it takes the first person to move 10 steps is the time it takes the 2nd person to move 30 steps? If you're taking 9 steps in the time someone else takes 1, I don't think you're "slightly faster"; you're way faster.

(x - 50) = 5/3 * (x-90)
x - 50 = 5/3x - 150
100 = 2/3x
x = 150
0
EngineerAuthor Commented:
http://aucse.com/infosys-sample%20paper%204.htm

I am increasing the points and splitting..
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Puzzles / Riddles

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.