Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JiayangWu/LeetCode-Python
/ functions
Functions
2,012 in github.com/JiayangWu/LeetCode-Python
⨍
Functions
2,012
◇
Types & classes
1,570
Method
findDerangement
:type n: int :rtype: int
0634.寻找数组的错位排列/0634-寻找数组的错位排列.py:2
Method
findDiagonalOrder
:type matrix: List[List[int]] :rtype: List[int]
0498.对角线遍历/0498-对角线遍历.py:2
Method
findDisappearedNumbers
:type nums: List[int] :rtype: List[int]
0448.找到所有数组中消失的数字/0448-找到所有数组中消失的数字.py:2
Method
findDuplicate
:type nums: List[int] :rtype: int
0287.寻找重复数/0287-寻找重复数.py:2
Method
findDuplicates
:type nums: List[int] :rtype: List[int]
0442.数组中重复的数据/0442-数组中重复的数据.py:2
Method
findErrorNums
:type nums: List[int] :rtype: List[int]
0645.错误的集合/0645-错误的集合.py:2
Method
findFinalValue
(self, nums: List[int], original: int)
2154.将找到的值乘以2/2154-将找到的值乘以2.py:2
Method
findFinalValue
(self, nums: List[int], original: int)
LeetCode-Python/2154.将找到的值乘以2/2154-将找到的值乘以2.py:2
Method
findInMountainArray
:type target: integer :type mountain_arr: MountainArray :rtype: integer
1095.山脉数组中查找目标值/1095-山脉数组中查找目标值.py:2
Method
findJudge
:type N: int :type trust: List[List[int]] :rtype: int
0997.找到小镇的法官/0997-找到小镇的法官.py:2
Method
findKthBit
:type n: int :type k: int :rtype: str
1545.找出第N个二进制字符串中的第K位/1545-找出第N个二进制字符串中的第K位.py:2
Method
findKthLargest
:type nums: List[int] :type k: int :rtype: int
0215.数组中的第K个最大元素/0215-数组中的第K个最大元素 2.py:2
Method
findKthLargest
:type nums: List[int] :type k: int :rtype: int
0215.数组中的第K个最大元素/0215-数组中的第K个最大元素.py:2
Method
findKthLargest
(self, nums: List[int], k: int)
剑指 Offer II 076.数组中的第k大的数字/剑指 Offer II 076-数组中的第k大的数字.py:2
Method
findKthLargest
(self, nums: List[int], k: int)
LeetCode-Python/0215.数组中的第K个最大元素/0215-数组中的第K个最大元素.py:2
Method
findKthLargest
(self, nums: List[int], k: int)
LeetCode-Python/剑指 Offer II 076.数组中的第k大的数字/剑指 Offer II 076-数组中的第k大的数字.py:2
Method
findKthPositive
:type arr: List[int] :type k: int :rtype: int
1539.第k个缺失的正整数/1539-第k个缺失的正整数.py:2
Method
findLUSlength
(self, a: str, b: str)
0521.最长特殊序列Ⅰ/0521-最长特殊序列Ⅰ.py:2
Method
findLUSlength
(self, a: str, b: str)
LeetCode-Python/0521.最长特殊序列Ⅰ/0521-最长特殊序列Ⅰ.py:2
Method
findLadders
:type beginWord: str :type endWord: str :type wordList: List[str] :rtype: List[List[str]]
0126.单词接龙II/0126-单词接龙II.py:2
Method
findLayer
(target, root_val, layer)
1103.二叉树寻路/1103-二叉树寻路.py:7
Method
findLeastNumOfUniqueInts
:type arr: List[int] :type k: int :rtype: int
1481.不同整数的最少数目/1481-不同整数的最少数目.py:2
Method
findLeaves
:type root: TreeNode :rtype: List[List[int]]
0366.寻找完全二叉树的叶子节点/0366-寻找完全二叉树的叶子节点.py:9
Method
findLength
:type A: List[int] :type B: List[int] :rtype: int
0718.最长重复子数组/0718-最长重复子数组.py:2
Method
findLengthOfLCIS
:type nums: List[int] :rtype: int
0674.最长连续递增序列/0674-最长连续递增序列.py:2
Method
findLonelyPixel
:type picture: List[List[str]] :rtype: int
0531.孤独像素I/0531-孤独像素I.py:2
Method
findLongestChain
:type pairs: List[List[int]] :rtype: int
0646.最长数对链/0646-最长数对链.py:2
Method
findMagicIndex
:type nums: List[int] :rtype: int
面试题 08.03.魔术索引/面试题 08.03-魔术索引.py:2
Method
findMagicIndex
:type nums: List[int] :rtype: int
面试题 08.03.魔术索引/面试题 08.03-魔术索引 2.py:2
Method
findMagicIndex
(self, nums: List[int])
LeetCode-Python/面试题 08.03.魔术索引/面试题 08.03-魔术索引.py:2
Method
findMatrix
(self, nums: List[int])
2610.转换二维数组/2610-转换二维数组.py:2
Method
findMatrix
(self, nums: List[int])
LeetCode-Python/2610.转换二维数组/2610-转换二维数组.py:2
Method
findMaxAverage
:type nums: List[int] :type k: int :rtype: float
0643.子数组最大平均数I/0643-子数组最大平均数I.py:2
Method
findMaxConsecutiveOnes
:type nums: List[int] :rtype: int
0485.最大连续1的个数/0485-最大连续1的个数.py:2
Method
findMaxConsecutiveOnes
:type nums: List[int] :rtype: int
0487.最大连续1的个数II/0487-最大连续1的个数II.py:2
Method
findMaxK
(self, nums: List[int])
2441.与对应负数同时存在的最大正整数/2441-与对应负数同时存在的最大正整数.py:2
Method
findMaxK
(self, nums: List[int])
LeetCode-Python/2441.与对应负数同时存在的最大正整数/2441-与对应负数同时存在的最大正整数.py:2
Method
findMaxValueOfEquation
:type points: List[List[int]] :type k: int :rtype: int
1499.满足不等式的最大值/1499-满足不等式的最大值.py:2
Method
findMaximumXOR
:type nums: List[int] :rtype: int
0421.数组中两个数的最大异或值/0421-数组中两个数的最大异或值.py:2
Method
findMedian
:rtype: float
0295.数据流的中位数/0295-数据流的中位数.py:30
Method
findMedianSortedArrays
:type nums1: List[int] :type nums2: List[int] :rtype: float
0004.寻找两个有序数组的中位数/0004-寻找两个有序数组的中位数.py:22
Method
findMedianSortedArrays
:type nums1: List[int] :type nums2: List[int] :rtype: float
0004.寻找两个正序数组的中位数/0004-寻找两个正序数组的中位数.py:2
Method
findMin
:type nums: List[int] :rtype: int
0154.寻找旋转排序数组中的最小值II/0154-寻找旋转排序数组中的最小值II.py:2
Method
findMin
:type nums: List[int] :rtype: int
0153.寻找旋转排序数组中的最小值/0153-寻找旋转排序数组中的最小值.py:2
Method
findMinArrowShots
:type points: List[List[int]] :rtype: int
0452.用最少数量的箭引爆气球/0452-用最少数量的箭引爆气球.py:2
Method
findMinArrowShots
0452.用最少数量的箭引爆气球/0452-用最少数量的箭引爆气球.cpp:12
Method
findMissingRanges
:type nums: List[int] :type lower: int :type upper: int :rtype: List[str]
0163.缺失的区间/0163-缺失的区间.py:2
Method
findMode
:type root: TreeNode :rtype: List[int]
0501.二叉搜索树中的众数/0501-二叉搜索树中的众数.py:9
Method
findMustVisitNodesDFS
(node, path, visited)
1443.收集树上所有苹果的最少时间/1443-收集树上所有苹果的最少时间.py:17
Method
findOcurrences
:type text: str :type first: str :type second: str :rtype: List[str]
1078.Bigram分词/1078-Bigram分词.py:2
Method
findOrder
(self, numCourses: int, prerequisites: List[List[int]])
0210.课程表II/0210-课程表II.py:2
Method
findPeakElement
:type nums: List[int] :rtype: int
0162.寻找峰值/0162-寻找峰值.py:2
Method
findPoisonedDuration
:type timeSeries: List[int] :type duration: int :rtype: int
0495.提莫攻击/0495-提莫攻击.py:2
Method
findRedundantConnection
:type edges: List[List[int]] :rtype: List[int]
0684.冗余连接/0684-冗余连接.py:39
Method
findRelativeRanks
(self, score: List[int])
0506.相对名次/0506-相对名次.py:2
Method
findRelativeRanks
(int[] nums)
0506.相对名次/0506-相对名次.java:2
Method
findRelativeRanks
(self, score: List[int])
LeetCode-Python/0506.相对名次/0506-相对名次.py:2
Method
findRepeatNumber
(self, nums: List[int])
剑指 Offer 03.数组中重复的数字/剑指 Offer 03-数组中重复的数字.py:2
Method
findRepeatNumber
(self, nums: List[int])
LeetCode-Python/剑指 Offer 03.数组中重复的数字/剑指 Offer 03-数组中重复的数字.py:2
Method
findRepeatNumber
:type nums: List[int] :rtype: int
面试题03.数组中重复的数字/面试题03-数组中重复的数字.py:2
Method
findRepeatedDnaSequences
:type s: str :rtype: List[str]
0187.重复的DNA序列/0187-重复的DNA序列.py:2
Method
findRestaurant
:type list1: List[str] :type list2: List[str] :rtype: List[str]
0599.两个列表的最小索引总和/0599-两个列表的最小索引总和.py:2
Method
findRightInterval
:type intervals: List[List[int]] :rtype: List[int]
0436.寻找右区间/0436-寻找右区间.py:2
Method
findSecondMinimumValue
:type root: TreeNode :rtype: int
0671.二叉树中第二小的节点/0671-二叉树中第二小的节点.py:9
Method
findShortestSubArray
:type nums: List[int] :rtype: int
0697.数组的度/0697-数组的度.py:2
Method
findSolution
(self, customfunction: 'CustomFunction', z: int)
1237.找出给定方程的正整数解/1237-找出给定方程的正整数解.py:13
Method
findSolution
(self, customfunction: 'CustomFunction', z: int)
LeetCode-Python/1237.找出给定方程的正整数解/1237-找出给定方程的正整数解.py:13
Method
findStrobogrammatic
:type n: int :rtype: List[str]
0247.中心对称数II/0247-中心对称数II.py:2
Method
findTarget
(self, root: TreeNode, k: int)
剑指 Offer II 056.二叉搜索树中两个节点之和/剑指 Offer II 056-二叉搜索树中两个节点之和.py:8
Method
findTarget
:type root: TreeNode :type k: int :rtype: bool
0653.两数之和IV-输入BST/0653-两数之和IV-输入BST.py:8
Method
findTarget
(self, root: TreeNode, k: int)
LeetCode-Python/剑指 Offer II 056.二叉搜索树中两个节点之和/剑指 Offer II 056-二叉搜索树中两个节点之和.py:8
Method
findTarget
(self, root: Optional[TreeNode], k: int)
LeetCode-Python/0653.两数之和IV-输入二叉搜索树/0653-两数之和IV-输入二叉搜索树.py:8
Method
findTarget
(self, root: Optional[TreeNode], k: int)
0653.两数之和IV-输入二叉搜索树/0653-两数之和IV-输入二叉搜索树.py:8
Method
findTheArrayConcVal
(self, nums: List[int])
2562.找出数组的串联值/2562-找出数组的串联值.py:2
Method
findTheArrayConcVal
(self, nums: List[int])
LeetCode-Python/2562.找出数组的串联值/2562-找出数组的串联值.py:2
Method
findTheCity
:type n: int :type edges: List[List[int]] :type distanceThreshold: int :rtype: int
1334.阈值距离内邻居最少的城市/1334-阈值距离内邻居最少的城市.py:2
Method
findTheDifference
:type s: str :type t: str :rtype: str
0389.找不同/0389-找不同.py:2
Method
findThreeSum
(num, l, t)
0018.四数之和/0018-四数之和.py:12
Method
findUnsortedSubarray
:type nums: List[int] :rtype: int
0581.最短无序连续子数组/0581-最短无序连续子数组.py:2
Method
findWhetherExistsPath
(self, n: int, graph: List[List[int]], start: int, target: int)
LeetCode-Python/面试题 04.01.节点间通路/面试题 04.01-节点间通路.py:3
Method
findWhetherExistsPath
(self, n: int, graph: List[List[int]], start: int, target: int)
面试题 04.01.节点间通路/面试题 04.01-节点间通路.py:3
Method
findWords
:type board: List[List[str]] :type words: List[str] :rtype: List[str]
0212.单词搜索II/0212-单词搜索II.py:47
Method
findWords
(self, words: List[str])
LeetCode-Python/0500.键盘行/0500-键盘行.py:2
Method
findWords
:type words: List[str] :rtype: List[str]
0500.键盘行/0500-键盘行 2.py:2
Method
findWords
:type words: List[str] :rtype: List[str]
0500.键盘行/0500-键盘行.py:2
Method
firstBadVersion
:type n: int :rtype: int
0278.第一个错误的版本/0278-第一个错误的版本.py:7
Method
firstMissingPositive
:type nums: List[int] :rtype: int
0041.缺失的第一个正数/0041-缺失的第一个正数.py:2
Method
firstPalindrome
(self, words: List[str])
2108.找出数组中的第一个回文字符串/2108-找出数组中的第一个回文字符串.py:2
Method
firstPalindrome
(self, words: List[str])
LeetCode-Python/2108.找出数组中的第一个回文字符串/2108-找出数组中的第一个回文字符串.py:2
Method
firstUniqChar
:type s: str :rtype: str
面试题50.第一个只出现一次的字符/面试题50-第一个只出现一次的字符.py:2
Method
firstUniqChar
0387.字符串中的第一个唯一字符/0387-字符串中的第一个唯一字符.cpp:3
Method
firstUniqChar
:type s: str :rtype: int
0387.字符串中的第一个唯一字符/0387-字符串中的第一个唯一字符.py:2
Method
fizzBuzz
(self, n: int)
LeetCode-Python/0412.FizzBuzz/0412-FizzBuzz.py:2
Method
fizzBuzz
:type n: int :rtype: List[str]
0412.FizzBuzz/0412-FizzBuzz 2.py:2
Method
fizzBuzz
:type n: int :rtype: List[str]
0412.FizzBuzz/0412-FizzBuzz.py:2
Method
flatten
:type head: Node :rtype: Node
0430.扁平化多级双向链表/0430-扁平化多级双向链表.py:11
Method
flatten
Do not return anything, modify root in-place instead.
LeetCode-Python/0114.二叉树展开为链表/0114-二叉树展开为链表.py:8
Method
flatten
:type root: TreeNode :rtype: None Do not return anything, modify root in-place instead.
0114.二叉树展开为链表/0114-二叉树展开为链表 2.py:8
Method
flatten
:type root: TreeNode :rtype: None Do not return anything, modify root in-place instead.
0114.二叉树展开为链表/0114-二叉树展开为链表.py:8
Method
flipAndInvertImage
:type A: List[List[int]] :rtype: List[List[int]]
0832.翻转图像/0832-翻转图像.py:2
← previous
next →
701–800 of 2,012, ranked by callers