06 2017 档案

摘要:1 class Solution { 2 /** 3 * @param root: The root of binary tree. 4 * @return: Level order a list of lists of integer 5 */ 6 struct node{ 7 TreeNode* tn; 8 ... 阅读全文
posted @ 2017-06-10 01:06 GeniusYang 阅读(216) 评论(0) 推荐(0)
摘要:给出三个字符串:s1、s2、s3,判断s3是否由s1和s2交叉构成。 样例 比如 s1 = "aabcc" s2 = "dbbca" - 当 s3 = "aadbbcbcac",返回 true. - 当 s3 = "aadbbbaccc", 返回 false. dp[i][j][k] 代表 当到了s 阅读全文
posted @ 2017-06-07 12:02 GeniusYang 阅读(909) 评论(0) 推荐(0)
摘要:1 #include 2 3 using namespace std; 4 5 /** 6 * Definition of TreeNode: 7 * class TreeNode { 8 * public: 9 * int val; 10 * TreeNode *left, *right; 11 * TreeNode(int val)... 阅读全文
posted @ 2017-06-07 00:33 GeniusYang 阅读(148) 评论(0) 推荐(0)