Robot Bounded in Circle
Medium
Game & Board Simulation
A robot starts facing north and repeats the instruction string (G forward, L turn left, R turn right) forever. Print YES if its path stays within a circle, otherwise NO.
Constraints
1 <= |s| <= 100
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.