recategorized by
331 views
0 0 votes

You live in $\Delta$-City, which is a large equilateral triangle with each side of length $2$ km. The corners are named $A, B$ and $C$. The city is partitioned into triangular blocks with sides of $500$ m each, and there are roads at the boundaries of the blocks.

You live in corner $A$ and your office is at corner $B$.


You have decided to walk from home to the office everyday, and you are willing to change your route, as long as the total distance is at most $2.5$ kms . How many such routes are possible from $A$ to $B$?

  1. $5$
  2. $11$
  3. $21$
  4. $45$

     

2 Answers

0 0 votes
There are 2 ways one you can brute force it and get answer as 11.

Other is like a dynamic programming approach where you maintain an 2d array of no of ways to reach a particular point with starting at A with certain distance similarly maintain one for B and add every pt which leads to sum less than 6(6 edges make more than 2.5km) and get answer as 11. Still prefer brute force as its easy here
Position:
Show:

Related questions

0 0 votes
1 1 answer
240
240 views
admin asked Nov 25, 2024
240 views
Suppose all points on the $2$D plane with integer coordinates are coloured either blue or green. Show that there is an isosceles right angled triangle all of whose vertic...
0 0 votes
2 2 answers
303
303 views
admin asked Nov 25, 2024
303 views
Friends Akshay and Bipasha go to a fun fair, and decide to explore the stalls separately. Each of them visits a stall every $10$ minutes, starting at $8$ am. If a stall t...
0 0 votes
2 2 answers
282
282 views
admin asked Nov 25, 2024
282 views
Rohit and Ben participate in a new toss system introduced by the ICC. The umpire repeatedly tosses a fair coin (which comes up heads with probability $\frac{1}{2}$ and ta...
43 43 votes
6 answers 6 answers
16.7k
16.7k views
Kathleen asked Sep 23, 2014
16,691 views
The number of binary strings of $n$ zeros and $k$ ones in which no two ones are adjacent is$^{n-1}C_k$$^nC_k$$^nC_{k+1}$None of the above