nlavee
BAN USER 2 Answers Combination
Suppose you are managing 16 employees, and you need to form three teams to work on different projects. Assume that all employees will work on a team, and that each employee has the same qualifications/skills so that everyone has the same probability of getting chosen. In how many different ways can the teams be chosen so that the number of employees on each project are as follows:
 nlavee December 01, 2014
8,4,4 Flag  PURGE
Returning k element in sorted order.
public static String returnElement(ArrayList<Integer> first, ArrayList<Integer> second, int k) {
String res ="";
int time = 0;
int left = 0;
int right = 0;
while(time < k) {
if(first.get(left) < second.get(right)) {
res += first.get(left) + " ";
time++;
left++;
} else if(first.get(left) > second.get(right)) {
res += second.get(right) +" ";
time++;
right++;
} else {
res += first.get(left) + " " + second.get(right) + " ";
left++;
right++;
time++;
}
}
return res;
}

nlavee
November 13, 2014 While the two challenges have the same probability, we might have to take into account the independence condition in between throws. Suppose that you choose 6 shoots, after each throw, you might have a better throw and thus the independence between the shoots are violated. The player might want to choose the second option in light of this!
 nlavee November 13, 2014I would say the second challenge.
The first challenge requires you to make it 66% of the time while the second challenge only requires you to make it 63%. The drop of 3% might be significant.
Also, the condition for independence between shoot is questionable. As you try 8 times, you have more practices and might be able to make it into the basket in the subsequent throws. Therefore, the option of trying 8 times might mean better chance of winning the game.
That's what I think from my statistics perspective.
Open Chat in New Window
Thank you so much! Helped a lot!
 nlavee December 01, 2014