leetcode
oe1019
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
树通过程序栈进行递归
学习目标: 通过程序栈进行树的递归 学习内容: 利用程序栈的思维进行进出栈操作 参考: https://leetcode-cn.com/problems/er-cha-shu-de-jing-xiang-lcof/ 学习时间: N/A 学习产出: func f(root *TreeNode) *TreeNode { //临界处理,预防空指针 if root == nil { return root } // 执行 tmp := root.Left原创 2020-10-10 18:57:56 · 151 阅读 · 0 评论 -
leetcode每日一题2020/10/09
https://leetcode-cn.com/problems/linked-list-cycle/ Given head, the head of a linked list, determine if the linked list has a cycle in it. There is a cycle in a linked list if there is some node in the list that can be reached again by continuously followi原创 2020-10-09 23:11:48 · 296 阅读 · 0 评论 -
leetcode每日一题2020/10/08
Write a function that reverses a string. The input string is given as an array of characters char[]. Do not allocate extra space for another array, you must do this by modifying the input array in-place with O(1) extra memory. You may assume all the charac原创 2020-10-08 21:11:44 · 357 阅读 · 0 评论
分享