摘要: Given two strings s and t, return the number of distinct subsequences of s which equals t. The test cases are generated so that the answer fits on a 3 阅读全文
posted @ 2015-02-16 14:50 Grandyang 阅读(15758) 评论(11) 推荐(1) 编辑
摘要: Given a binary tree, flatten it to a linked list in-place. For example,Given The flattened tree should look like: click to show hints. Hints: If you n 阅读全文
posted @ 2015-02-16 11:07 Grandyang 阅读(22952) 评论(3) 推荐(3) 编辑
Fork me on GitHub