剑指offer
zzzky
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
7-重建二叉树 C++
源代码 /** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * 构建函数: * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * };...原创 2020-04-28 19:33:13 · 224 阅读 · 0 评论 -
5-替换空格 JS
代码 function replaceSpace(str) { //var pos=str.indexOf(" "); //while(pos > -1){ // str.splice(pos,1,"%20"); //str.indexOf(" ",pos+1); var resArr=str.split(" ").join("%20")...原创 2020-04-27 19:08:34 · 174 阅读 · 0 评论 -
6-从头到尾打印链表 C++
代码 /** * struct ListNode { * int val; * struct ListNode *next; * ListNode(int x) : * val(x), next(NULL) { * } * }; */ class Solution { public: vector<...原创 2020-04-27 19:05:40 · 235 阅读 · 0 评论
分享