摘要: Initially, there is a Robot at position (0, 0). Given a sequence of its moves, judge if this robot makes a circle, which means it moves back to the or 阅读全文
posted @ 2018-02-27 20:29 bonelee 阅读(185) 评论(0) 推荐(0)
摘要: The Hamming distance between two integers is the number of positions at which the corresponding bits are different. Given two integers x and y, calcul 阅读全文
posted @ 2018-02-27 20:05 bonelee 阅读(185) 评论(0) 推荐(0)
摘要: You're given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in Sis a type of stone 阅读全文
posted @ 2018-02-27 19:23 bonelee 阅读(250) 评论(0) 推荐(0)