摘要: Given three strings: s1, s2, s3, determine whether s3 is formed by the interleaving of s1 and s2. Example For s1 = "aabcc", s2 = "dbbca" When s3 = "aa 阅读全文
posted @ 2016-09-03 21:17 googlemeoften 阅读(201) 评论(0) 推荐(0) 编辑
摘要: There are n coins in a line. Two players take turns to take one or two coins from right side until there are no more coins left. The player who take t 阅读全文
posted @ 2016-09-03 20:21 googlemeoften 阅读(332) 评论(0) 推荐(0) 编辑
摘要: Given n items with size Ai, an integer m denotes the size of a backpack. How full you can fill this backpack? Example If we have 4 items with size [2, 阅读全文
posted @ 2016-09-03 11:03 googlemeoften 阅读(1162) 评论(0) 推荐(0) 编辑