If the word is "robot".
Write an algorithm on how will you extract letter "R" from "robot" ?
Answers
Answered by
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
English,
1 month ago
Environmental Sciences,
1 month ago
Math,
1 month ago
Political Science,
3 months ago
Accountancy,
10 months ago
English,
10 months ago