文章
LeetCode | 面试题32 - II. 从上到下打印二叉树 II【剑指Offer】【Python】
<blockquoteLeetCode面试题32II.从上到下打印二叉树II【剑指Offer】【Easy】【Python】【二叉树】【BFS】</blockquote问题力扣(https://link.segmentfault.com/?encTATIOpX
Leetcode2. 两数相加 Python实现
题目要求:!image.png(https://imghelloworld.osscnbeijing.aliyuncs.com/imgs/772de70a9992bbdf7485342c0f5a6dc2.png)思路:遍历第一个与第二个链表,把相同位置的相
Leetcode485. 最大连续1的个数 Python实现
题目要求:!image.png(https://imghelloworld.osscnbeijing.aliyuncs.com/imgs/7f731a32a3a4999fd4481e1437271808.png)思路:1出现的次数为,两个0之间,或是数组的
Leetcode243. 最短单词距离 Python实现
题目要求:!image.png(https://imghelloworld.osscnbeijing.aliyuncs.com/imgs/6fbc70828620dd56745b8ea6117fbd01.png)思路:定义一个dist来表示word1和wo
Leetcode283. 移动零 Python实现
题目要求!image.png(https://imghelloworld.osscnbeijing.aliyuncs.com/imgs/7578324689fa51bf875ccc0e567a8c7f.png)思路:声明一个遍历index,index0,用一个循环遍
Leetcode169. 多数元素 Python实现
题目要求:!image.png(https://imghelloworld.osscnbeijing.aliyuncs.com/imgs/15c270aaf478bd4cdc9d5535096cd31b.png)思路因为是计数,所以第一个想到了字典,记录数
LeetCode | 面试题32 - I. 从上到下打印二叉树【剑指Offer】【Python】
<blockquoteLeetCode面试题32I.从上到下打印二叉树【剑指Offer】【Medium】【Python】【二叉树】【BFS】</blockquote问题力扣(https://link.segmentfault.com/?encnGPvBgSH9
LeetCode | 0226. Invert Binary Tree翻转二叉树【Python】
<blockquoteLeetCode0226.InvertBinaryTree翻转二叉树【Easy】【Python】【二叉树】【递归】</blockquoteProblemLeetCode(https://link.segmentfault.com/?encb
LeetCode | 面试题27. 二叉树的镜像【剑指Offer】【Python】
<blockquoteLeetCode面试题27.二叉树的镜像【剑指Offer】【Easy】【Python】【二叉树】【递归】</blockquote问题力扣(https://link.segmentfault.com/?encTlTCnwLQhkiPK7J6Gk%
LeetCode | 0409. Longest Palindrome最长回文串【Python】
<blockquoteLeetCode0409.LongestPalindrome最长回文串【Easy】【Python】【字符串】</blockquoteProblemLeetCode(https://link.segmentfault.com/?encbveJT
已加载文章中没有匹配内容,试试其他关键词或清空搜索。