摘要: Description:Give you a string with length N, you can generate N strings by left shifts. For example let consider the string “SKYLONG”, we can generate... 阅读全文
posted @ 2015-10-09 17:26 搁浅の记忆 阅读(186) 评论(0) 推荐(0) 编辑
摘要: Given two integers A and B. Sequence S is defined as follow:• S0 = A• S1 = B• Si = |Si−1 − Si−2| for i ≥ 2Count the number of distinct numbers in S.In... 阅读全文
posted @ 2015-10-09 14:53 搁浅の记忆 阅读(275) 评论(0) 推荐(0) 编辑
摘要: Description:Clairewd is a member of FBI. After several years concealing in BUPT, she intercepted some important messages and she was preparing for sen... 阅读全文
posted @ 2015-10-09 14:07 搁浅の记忆 阅读(128) 评论(0) 推荐(0) 编辑