摘要: https://www.nowcoder.com/practice/ff05d44dfdb04e1d83bdbdab320efbcb?tpId=13&tqId=11211&tPage=1&rp=1&ru=%2Fta%2Fcoding-interviews&qru=%2Fta%2Fcoding-int 阅读全文
posted @ 2021-03-28 12:52 rxh1999 阅读(47) 评论(0) 推荐(0)
摘要: /** * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} * } 阅读全文
posted @ 2021-03-28 12:43 rxh1999 阅读(38) 评论(0) 推荐(0)
摘要: class Solution { public: bool check(TreeNode* pRoot1, TreeNode* pRoot2){ if(pRoot2 == nullptr){ return true; } if(pRoot1 == nullptr){ return false; } 阅读全文
posted @ 2021-03-28 12:33 rxh1999 阅读(33) 评论(0) 推荐(0)
摘要: /* struct TreeLinkNode { int val; struct TreeLinkNode *left; struct TreeLinkNode *right; struct TreeLinkNode *next; TreeLinkNode(int x) :val(x), left( 阅读全文
posted @ 2021-03-28 12:03 rxh1999 阅读(45) 评论(0) 推荐(0)
摘要: class Solution { public: TreeNode* f(vector<int>& pre, int pleft, int pright, vector<int>& vin, int vleft, int vright){ if(pleft>pright) return nullpt 阅读全文
posted @ 2021-03-28 11:29 rxh1999 阅读(34) 评论(0) 推荐(0)
摘要: /* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } };*/class Solution { public: ListNode* FindFirstCommonNo 阅读全文
posted @ 2021-03-28 10:11 rxh1999 阅读(38) 评论(0) 推荐(0)
摘要: /* struct RandomListNode { int label; struct RandomListNode *next, *random; RandomListNode(int x) : label(x), next(NULL), random(NULL) { } }; */ class 阅读全文
posted @ 2021-03-28 09:56 rxh1999 阅读(32) 评论(0) 推荐(0)
摘要: https://www.nowcoder.com/practice/253d2c59ec3e4bc68da16833f79a38e4?tpId=13&tqId=11208&tPage=1&rp=1&ru=%2Fta%2Fcoding-interviews&qru=%2Fta%2Fcoding-int 阅读全文
posted @ 2021-03-27 21:46 rxh1999 阅读(42) 评论(0) 推荐(0)
摘要: /* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } }; */ class Solution { public: ListNode* deleteDuplicati 阅读全文
posted @ 2021-03-27 20:35 rxh1999 阅读(38) 评论(0) 推荐(0)
摘要: https://www.nowcoder.com/practice/94a4d381a68b47b7a8bed86f2975db46?tpId=13&tqId=11204&tPage=1&rp=1&ru=%2Fta%2Fcoding-interviews&qru=%2Fta%2Fcoding-int 阅读全文
posted @ 2021-03-27 19:37 rxh1999 阅读(45) 评论(0) 推荐(0)