can anybody explain the third testcase of FATCHEF?

thanks in advance.

can anybody explain the third testcase of FATCHEF?

thanks in advance.

1 Like

third test case is :

6 2

A 2

B 6

Explaination:

Plank Numbers: 1 2 3 4 5 6

Color’s Bucket: 2=>A,6=>B

I am taking a case that Remy starts from 2nd plank then possible colorings:

A A A A A B

A A A A B B

A A A B B B

A A B B B B

So answer is 4;

5 Likes

plzz tell if change of direction can only be at end or at any point.

//Please don’t discuss new test cases

plz correct me if i am wrong

what will be the output for:

//Please don’t

is this correct???