Computer Science, asked by nkayare, 1 month ago

If the word is "robot".
Write an algorithm on how will you extract letter "R" from "robot" ?​

Answers

Answered by kushriya
1

Answer:

Given a robot which can only move in four directions, UP(U), DOWN(D), LEFT(L), RIGHT(R). Given a string consisting of instructions to move. Output the coordinates of a robot after executing the instructions. Initial position of robot is at origin(0, 0).

Similar questions