Computer Science, asked by wajdaankhan08, 1 month ago

Make the robot reach the red spot through the written table

Attachments:

Answers

Answered by YourHelperAdi
1

to find :

route for the robot to reach the red box following the path

given :

1 step left : 00

1 step right : 01

1 step up : 10

1 step down : 11

solution :

1) the robot will travel 1 step right to reach the path ,

the route :

01,

2) the robot will travel 3 steps downwards ,

hence the route :

01,11,11,11

3) the robot again travel 2 step toward right

hence the route :

01,11,11,11,01,01

4)the robot will travel 4 step downwards to reach the red box

hence the route :

01,11,11,11,01,01,11,11,11,11

hence the route is :

01,11,11,11,01,01,11,11,11,11

Similar questions