Placement AptitudeHardInfosys · Capgemini pattern
You walk from (0, 0) to (4, 4) on a grid, one unit east or north at a time. The junctions (1, 1) and (3, 3) are closed. How many shortest routes avoid both closed junctions?
- A. 30
- B. 14
- C. 38
- D. 46
Correct answer: B. 14
Total C(8, 4) = 70. Through (1, 1): 2 × C(6, 3) = 40. Through (3, 3): C(6, 3) × 2 = 40. Through both: 2 × C(4, 2) × 2 = 24. Avoiding both = 70 − 40 − 40 + 24 = 14. 30 avoids only one closed junction; 46 = 70 − 24 removes only the routes through both. Without adding back the 24, the count would even go negative.
Practise more Permutations, Combinations and Probability (Placement) questionsPermutations, Combinations and Probability (Placement): notes and key points
More Permutations, Combinations and Probability (Placement) questions
- A fair die is rolled repeatedly until a 6 appears. What is the probability that the first 6 appears on an odd-numbered roll (1st, 3rd…
- How many triangles can be formed using the vertices of a regular 12-sided polygon so that no side of the triangle is a side of the polygon?
- In how many ways can three different numbers be chosen from 1, 2, …, 30 so that they form an arithmetic progression (order of choosing…
- 12 identical pens are given to 3 students so that each student gets at least 2 and at most 6 pens. In how many ways can this be done?
- In a 4-option MCQ test, a student knows the answer to 60% of the questions and guesses at random on the rest. Given that a question was…
- In how many arrangements of the numbers 1, 2, 3, 4, 5, 6, 7 in a row does no number k appear immediately before k + 1? (For example, '3 4'…