yx - xy = x0y - yx
=> (10y + x) - (10x + y) = (100x + y) - (10y + x)
9y - 9x = 99x - 9y
18y = 108x
y=6x
Since, x comes in hundreds place, we know it can only be 1 as the difference
between the 3 digit number and two digit number is difference of two 2 digit
numbers only.
thus, y=6*1 = 6
a explai
Relation comes out as : y=6x
so x=1 ans y=6.
so 1st: "16" (say km)
2nd: "61"
3rd: "106"
av. speed=(106-16)/2=45 km/hr
On Thu, Jul 14, 2011 at 1:13 AM, Siddharth kumar <
siddhartha.baran...@gmail.com> wrote:
> 1st: "xy"
> 2nd: "yx"
> 3rd: "x0y"
>
> --
> You received this message because you are
1st: "xy"
2nd: "yx"
3rd: "x0y"
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to
algogeeks+unsubscr...@googlegroups.com.
For more op
initially he saw say "xy" then he saw "yx" now what next does he
see...containing only x and y??
Please clarify your question..
On Thu, Jul 14, 2011 at 12:59 AM, udit sharma wrote:
>
> Ans should be 45km/hr. :)
>
> --
> Regards
> UDIT
> DU- MCA
>
> --
> You received this message because
Ans should be 45km/hr. :)
--
Regards
UDIT
DU- MCA
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to
algogeeks+unsubscr...@go
http://www.geekinterview.com/question_details/56715
I think you missed zero :)
On Thu, Jul 14, 2011 at 12:20 AM, shiv narayan
wrote:
> A car is traveling at a uniform speed.The driver sees a milestone
> showing a 2-digit number. After traveling for an hour the driver sees
> another milestone wit