Epic Systems Interview Question for Software Engineer / Developers


Country: United States
Interview Type: Written Test




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

Three!

- lucky March 21, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
2
of 2 votes

Or two...

The reasoning behind saying that there's 3 is if one is Nike, one is Reebok, and one is Fubu, the conditions are satisifed.

However, there's another way to satisfy the conditions...there are 2 shoes, and both are New Balance, or some brand that's none of Nike, Reebok, and Fubu!

- eugene.yarovoi March 21, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Or two...

The reasoning behind saying that there's 3 is if one is Nike, one is Reebok, and one is Fubu, the conditions are satisifed.

However, there's another way to satisfy the conditions...there are 2 shoes, and both are New Balance, or some brand that's none of Nike, Reebok, and Fubu!

- eugene.yarovoi March 21, 2012 | Flag
Comment hidden because of low score. Click to expand.
4
of 4 votes

In fact, it's good to show that these are the only two possibilities assuming a shoe can't be of multiple brands at the same time. Let the number of Nike shoes be N, Reebok R, Fubu F, and others O.

Then,
ALL = N + R + F + O
ALL - N = 2 => R + F + O = 2
ALL - R = 2 => N + F + O = 2
ALL - F = 2 => R + N + O = 2

From these, we deduce
N = R = F and 2 N + O = 2

Since we seek only non-negative integer solutions, either O = 2 and N = R = F = 0, or N = R = F = 1 and O = 0

- eugene.yarovoi March 21, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

@eugene.. wonderful.tnx. never thought to solve the problem with equations.

- varsha March 22, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

It doesn't seem like the kind of problem you'd write equations for -- it seems like a straight-up logic problem -- but I ended up writing equations when I found two different solutions and wanted to know whether there were any more. As I showed, the two solutions I identified are the only two.

- eugene.yarovoi March 22, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

@eugene.yarovoi Really liked your solution

- Water July 13, 2012 | Flag
Comment hidden because of low score. Click to expand.
1
of 1 vote

The answer is simply three shoes, it's because all are being circulated one-by-one and rest two remain of the other brand, so the most possible answer seems to be 3. Else and otherwise it was mentioned that there may be possibility of zero amount of original value.

- @grtehe November 17, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Eugene Sir, Mind blown, I could only think of THREE as the answer ,,, two as the answer was too tough to crack , Respect.

- sumit khanna January 14, 2014 | Flag
Comment hidden because of low score. Click to expand.
1
of 1 vote

three-------------------->>>>>>>>>>>>>> 1reebok+1nike+1fube

- Rajnesh March 21, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

3

- Sasi March 21, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

plz explain the answer

- prashant March 21, 2012 | Flag
Comment hidden because of low score. Click to expand.
1
of 1 vote

There are three pairs, when you say all those shoes are reebok except 2,meaning 1 is reebok,other two are fubu and Nike.
Same applies in other two statements aslo.

- pbingi March 21, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Or there could be only 2 shoes. See my comment on the above answer.

- eugene.yarovoi March 21, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

The updated question is all the flowers are X except 2, all the flowers are roses, except 2, and all the flowers are Y, except 2.

- amazon August 10, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

Thr33

- rkt March 21, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

could u explain elobarately

- prudhvi March 21, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 4 vote

Answer is three pairs

- Nawaz Ahmed March 21, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

3

- harsh March 21, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

r=x-2;
n=x-2;
f=x-2
X=r+n+f
X=3x-6
X=3

- mitesh March 21, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

I suppose that this method of solving it with equations works too, assuming all the shoes are one of Reebok, Nike, or Fubu. One other solution is possible if you don't make that assumption (namely, both shoes could be none of Nike, Reebok, or Fubu, and there would then be 2 shoes).

- eugene.yarovoi March 22, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

The one issue I have with assuming "both shoes could be none of Nike, Reebok, or Fubu," is the original problem says "All the shoes are Nike....(.etc)" In order to satisfy the "All shoes" condition with each brand, you must have at least 1 shoe that is of that brand. Given that, the only answer I see is 3.

- dg July 13, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

It's also possible that you're over-thinking it with the formulas.. The question states "all of the shoes are..." for each brand, which leads to the safe inference that each of the said brands is represented by at least one shoe. Answering "2" disregards the indication that there is at least 1 of the other brands. So I think the answer, and the only answer, is 3.

- AJ July 26, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Derp.. Just saw dg's above comment. I agree. ;)

- AJ July 26, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

I got the same question, but with daisies, roses and a third flower type.

- gdwitt August 10, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

three....for sure.....1 reebok,1 nike,1 fubu...

- Novice January 21, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

I think two is the correct answer. Here's why:
All = x ("All" is "X" because we don't know how many shoes exist),
so if all shoes are Rebok minus 2 of them, then "All" is x-2
also, if "All" shoes are Nike minus two of them, then, again, x-2,
finally, "All" shoes are Fubu minus two of them, thus x-2 again.
so,
(x-2) AND (x-2) AND (x-2) = x
(x-2) + (x-2) + (x-2) = 0
3x-6=x (also written as 1x)
3x-6-1x=0
2x-6=0
2x=6
x=3

- scott May 11, 2013 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

sorry, I meant the answer is 3. Typo. see equation above.

- scott May 11, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

Okay, so I have goofed this again. I still think it is 3.
(x-2) AND (x-2) AND (x-2) = x
(x-2) + (x-2) + (x-2) = x <-- I wrote "0" above....sorry, my error.
3x-6=x (also written as 1x)
3x-6-1x=0
2x-6=0
2x=6
x=3

- scott again May 11, 2013 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

It all depends on how you interpret "All the shoes are Reebok..., All of the shoes are Nike..., etc" If Nike or Reebok or Fubu are 0, then you logistically cannot say "All of the shoes are x except..." You have to have at least 1 of something to say something 'is' or 'are'. But yes, this can be solved via the formulas above to assure yourself.

- Chris June 19, 2013 | Flag Reply


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