OG Question

This topic has expert replies
Source: — Problem Solving |

User avatar
Community Manager
Posts: 789
Joined: Sun Jan 28, 2007 3:51 pm
Location: Silicon valley, California
Thanked: 30 times
Followed by:1 members

by jayhawk2001 » Sun Jun 10, 2007 4:54 pm
I didn't place much trust on my permutation skills with this question and so
counted the routes one by one :-). Ended up with 10.

However, if you do want to use permutations, you can do it as below --

Total number of moves for shortest path = 5
Total number of paths possible with 5 moves = 5!

There are 3 horizontal and 2 vertical moves. So, divide by 2! and 3!
to prune duplicates.

So, total = 5! / (3! * 2!) = 10