Leetcode - 657. Robot Return to Origin
此篇文章為我的解題紀錄,程式碼或許並不是很完善
Leetcode - 657. Robot Return to Origin
解題思路
用ver
和hor
來模擬(x,y)座標,看最後是否在(0,0)座標上。
我滴程式碼
1 | class Solution: |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment
GitalkFacebook Comments