摘要: Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. For example,Given:s1 ="aabcc",s2 ="dbbca", When s3 ="aadbbcbcac", return 阅读全文
posted @ 2017-07-06 20:35 王大咩的图书馆 阅读(291) 评论(0) 推荐(0) 编辑
摘要: Given a collection of integers that might contain duplicates, S, return all possible subsets. Note: Elements in a subset must be in non-descending ord 阅读全文
posted @ 2017-07-06 15:57 王大咩的图书馆 阅读(1074) 评论(0) 推荐(0) 编辑
摘要: Given a set of distinct integers, S, return all possible subsets. Note: Elements in a subset must be in non-descending order. The solution set must no 阅读全文
posted @ 2017-07-06 15:17 王大咩的图书馆 阅读(3024) 评论(0) 推荐(0) 编辑
摘要: Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.) You have 阅读全文
posted @ 2017-07-06 10:24 王大咩的图书馆 阅读(229) 评论(0) 推荐(0) 编辑
摘要: You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct ways can you cl 阅读全文
posted @ 2017-07-06 08:57 王大咩的图书馆 阅读(478) 评论(0) 推荐(0) 编辑