随笔分类 -  Math

[Leetcode 1041]机器人围成圈 Robot Bounded In Circle
摘要:题目 机器人从(0,0)出发,初始化向北 三种指令 G当前方向+1步,L左转90度,R右转90度 问指令结束后是否成圆圈(只有可能回原点时才成圈) 返回true/false On an infinite plane, a robot initially stands at (0, 0) and fa 阅读全文
posted @ 2021-11-28 00:36 alau 阅读(247) 评论(0) 推荐(0)