McAfee Interview Question for Developer Program Engineers


Country: India
Interview Type: In-Person




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

A classic question is: Divide into two sets, such that each contains the same number of heads (note: not necessarily 10 heads each).

Perhaps you have your own interpretation in mind and didn't really understand the actual question?

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

How do you solve even that?

- Anonymous July 31, 2012 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 votes

dividing into 2 sets with equal number of heads and tails easy...
divide into 2 sets first, so we will get one combination like below
set1: 6H+4T
set2: 4H+6T
if you flip all coins on one side then it will become equal number of heads and tails on both side...
but getting exactly 10heads on one side and is difficult task

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

//can not be done exactly. gut here is the try ->
flip 10 of them ,, not we have majority of heads or tails except we got all heads or all tails . move 10 of them . flip the other group of coins.

- upvan111 July 31, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

flip 10 of them ,, now we have majority of heads or tails ,except we gets all heads or all tails . move 10 of them to a group . flip the other group of coins.

- Anonymous July 31, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

For any given number, divide them into two group of equal number.
Say we have 20 Coins, and we have to divide them into 10-10's Group,

First 10 would contain say x Heads, and ( 10 - x ) tails.
while other group would contain ( 10 - x ) heads and x Tails.

Just flip one Group totally, and it would be same as the other Group. in other words,
x heads and ( 10 - x ) tails would convert into ( 10 - x ) heads and x tails. which is similar to other group.

- Manish October 05, 2012 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

I tried solving the question as you phrased it but no luck, as far as I can tell it looks impossible.
does anyone think there is a way to actually separate the coins into two setts of either all head or all tail?

- hicham November 20, 2012 | 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