摘要: Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not possible, it must rearrange it as the lowest possible ord... 阅读全文
posted @ 2017-01-24 15:51 copperface 阅读(189) 评论(0) 推荐(0) 编辑
摘要: You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a concatenation of each word in words exactly once and wi... 阅读全文
posted @ 2017-01-24 12:42 copperface 阅读(238) 评论(0) 推荐(0) 编辑