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 · 124 阅读 · 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 · 240 阅读 · 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 · 266 阅读 · 0 评论