Yahoo Interview Question
Software Engineer / Developersx = 3 y = 4
1. put 3 flowers in pond => 6(3*2) flowers
2. pick 4 flowers to lord Ram, 2 flowers left in pond
3. flowers double => 4(2*2) more in pond
4. pick 4 more flowers lord Shiv
5. No flowers in pond
Generic:
step 1: x => 2x
step 2: 2x-y
step 3: 2x-y => 2(2x-y)
step 4: (4x-2y)-y
step 5: 4x-3y = 0
hence x = (3/4)y or y = (4/3)x
x = 15 and y = 16
- Anonymous September 13, 2010