摘要: We are given two strings, A and B. A shift on A consists of taking string A and moving the leftmost character to the rightmost position. For example, 阅读全文
posted @ 2018-03-11 19:12 __Meng 阅读(168) 评论(0) 推荐(0) 编辑
摘要: There are 1000 buckets, one and only one of them contains poison, the rest are filled with water. They all look the same. If a pig drinks that poison 阅读全文
posted @ 2018-03-11 12:15 __Meng 阅读(213) 评论(0) 推荐(0) 编辑
摘要: Given a string s and a non-empty string p, find all the start indices of p's anagrams in s. Strings consists of lowercase English letters only and the 阅读全文
posted @ 2018-03-11 10:44 __Meng 阅读(123) 评论(0) 推荐(0) 编辑