摘要:
算是第一个独立完成的中等题了。对二叉树进行一次先序遍历即可。 class Solution { public: TreeNode *targetNode; TreeNode *resultNode; TreeNode *getTargetCopy(TreeNode *original, TreeNo 阅读全文
posted @ 2021-02-25 18:11
siyu1915
阅读(60)
评论(0)
推荐(0)
摘要:
排序的方法比较巧妙: 1 #include <stdio.h> 2 #include <malloc.h> 3 #include <string.h> 4 5 void str_sort(char **strs, int size) { 6 char *dest1 = (char *) malloc 阅读全文
posted @ 2021-02-25 18:06
siyu1915
阅读(329)
评论(0)
推荐(0)