Yahoo Interview Question for Software Engineer / Developers






Comment hidden because of low score. Click to expand.
1
of 1 vote

x = 15 and y = 16

- Anonymous September 13, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
1
of 1 vote

right 2(2(2(2x-y)-y)-y)=y
gives x=(15/16)y;
put y =16 to makes x least integer as 15;

- saumils1987 September 13, 2010 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

x = 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

- Anonymous August 23, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

@above:dude read d question again...flowers sud b offered 2 all the 4 gods...and that 2 equal number of flowers...
x/y=15/16..

- qwerty September 02, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

@above:dude read d question again...flowers sud b offered 2 all the 4 gods...and that 2 equal number of flowers...
x/y=15/16..

- qwerty September 02, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

The answer is x=15 and multiples;y=16 and multiples.(Since the question did not mention anything about the least number required).
Eg x=45 and y=48 also works.

- canmpuppala January 30, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

why it can't be x=1, y=1

- bkhan March 29, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Because at the very end you would be left with 2 flowers and as the question states that at the very last there is no extra flower

- Anand January 20, 2016 | Flag


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More