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
Math,
24 days ago
Math,
24 days ago
English,
24 days ago
Political Science,
1 month ago
Accountancy,
8 months ago
English,
8 months ago