MCPcopy Create free account

hub / github.com/JiayangWu/LeetCode-Python / functions

Functions2,012 in github.com/JiayangWu/LeetCode-Python

MethodfindDerangement
:type n: int :rtype: int
0634.寻找数组的错位排列/0634-寻找数组的错位排列.py:2
MethodfindDiagonalOrder
:type matrix: List[List[int]] :rtype: List[int]
0498.对角线遍历/0498-对角线遍历.py:2
MethodfindDisappearedNumbers
:type nums: List[int] :rtype: List[int]
0448.找到所有数组中消失的数字/0448-找到所有数组中消失的数字.py:2
MethodfindDuplicate
:type nums: List[int] :rtype: int
0287.寻找重复数/0287-寻找重复数.py:2
MethodfindDuplicates
:type nums: List[int] :rtype: List[int]
0442.数组中重复的数据/0442-数组中重复的数据.py:2
MethodfindErrorNums
:type nums: List[int] :rtype: List[int]
0645.错误的集合/0645-错误的集合.py:2
MethodfindFinalValue
(self, nums: List[int], original: int)
2154.将找到的值乘以2/2154-将找到的值乘以2.py:2
MethodfindFinalValue
(self, nums: List[int], original: int)
LeetCode-Python/2154.将找到的值乘以2/2154-将找到的值乘以2.py:2
MethodfindInMountainArray
:type target: integer :type mountain_arr: MountainArray :rtype: integer
1095.山脉数组中查找目标值/1095-山脉数组中查找目标值.py:2
MethodfindJudge
:type N: int :type trust: List[List[int]] :rtype: int
0997.找到小镇的法官/0997-找到小镇的法官.py:2
MethodfindKthBit
:type n: int :type k: int :rtype: str
1545.找出第N个二进制字符串中的第K位/1545-找出第N个二进制字符串中的第K位.py:2
MethodfindKthLargest
:type nums: List[int] :type k: int :rtype: int
0215.数组中的第K个最大元素/0215-数组中的第K个最大元素 2.py:2
MethodfindKthLargest
:type nums: List[int] :type k: int :rtype: int
0215.数组中的第K个最大元素/0215-数组中的第K个最大元素.py:2
MethodfindKthLargest
(self, nums: List[int], k: int)
剑指 Offer II 076.数组中的第k大的数字/剑指 Offer II 076-数组中的第k大的数字.py:2
MethodfindKthLargest
(self, nums: List[int], k: int)
LeetCode-Python/0215.数组中的第K个最大元素/0215-数组中的第K个最大元素.py:2
MethodfindKthLargest
(self, nums: List[int], k: int)
LeetCode-Python/剑指 Offer II 076.数组中的第k大的数字/剑指 Offer II 076-数组中的第k大的数字.py:2
MethodfindKthPositive
:type arr: List[int] :type k: int :rtype: int
1539.第k个缺失的正整数/1539-第k个缺失的正整数.py:2
MethodfindLUSlength
(self, a: str, b: str)
0521.最长特殊序列Ⅰ/0521-最长特殊序列Ⅰ.py:2
MethodfindLUSlength
(self, a: str, b: str)
LeetCode-Python/0521.最长特殊序列Ⅰ/0521-最长特殊序列Ⅰ.py:2
MethodfindLadders
:type beginWord: str :type endWord: str :type wordList: List[str] :rtype: List[List[str]]
0126.单词接龙II/0126-单词接龙II.py:2
MethodfindLayer
(target, root_val, layer)
1103.二叉树寻路/1103-二叉树寻路.py:7
MethodfindLeastNumOfUniqueInts
:type arr: List[int] :type k: int :rtype: int
1481.不同整数的最少数目/1481-不同整数的最少数目.py:2
MethodfindLeaves
:type root: TreeNode :rtype: List[List[int]]
0366.寻找完全二叉树的叶子节点/0366-寻找完全二叉树的叶子节点.py:9
MethodfindLength
:type A: List[int] :type B: List[int] :rtype: int
0718.最长重复子数组/0718-最长重复子数组.py:2
MethodfindLengthOfLCIS
:type nums: List[int] :rtype: int
0674.最长连续递增序列/0674-最长连续递增序列.py:2
MethodfindLonelyPixel
:type picture: List[List[str]] :rtype: int
0531.孤独像素I/0531-孤独像素I.py:2
MethodfindLongestChain
:type pairs: List[List[int]] :rtype: int
0646.最长数对链/0646-最长数对链.py:2
MethodfindMagicIndex
:type nums: List[int] :rtype: int
面试题 08.03.魔术索引/面试题 08.03-魔术索引.py:2
MethodfindMagicIndex
:type nums: List[int] :rtype: int
面试题 08.03.魔术索引/面试题 08.03-魔术索引 2.py:2
MethodfindMagicIndex
(self, nums: List[int])
LeetCode-Python/面试题 08.03.魔术索引/面试题 08.03-魔术索引.py:2
MethodfindMatrix
(self, nums: List[int])
2610.转换二维数组/2610-转换二维数组.py:2
MethodfindMatrix
(self, nums: List[int])
LeetCode-Python/2610.转换二维数组/2610-转换二维数组.py:2
MethodfindMaxAverage
:type nums: List[int] :type k: int :rtype: float
0643.子数组最大平均数I/0643-子数组最大平均数I.py:2
MethodfindMaxConsecutiveOnes
:type nums: List[int] :rtype: int
0485.最大连续1的个数/0485-最大连续1的个数.py:2
MethodfindMaxConsecutiveOnes
:type nums: List[int] :rtype: int
0487.最大连续1的个数II/0487-最大连续1的个数II.py:2
MethodfindMaxK
(self, nums: List[int])
2441.与对应负数同时存在的最大正整数/2441-与对应负数同时存在的最大正整数.py:2
MethodfindMaxK
(self, nums: List[int])
LeetCode-Python/2441.与对应负数同时存在的最大正整数/2441-与对应负数同时存在的最大正整数.py:2
MethodfindMaxValueOfEquation
:type points: List[List[int]] :type k: int :rtype: int
1499.满足不等式的最大值/1499-满足不等式的最大值.py:2
MethodfindMaximumXOR
:type nums: List[int] :rtype: int
0421.数组中两个数的最大异或值/0421-数组中两个数的最大异或值.py:2
MethodfindMedian
:rtype: float
0295.数据流的中位数/0295-数据流的中位数.py:30
MethodfindMedianSortedArrays
:type nums1: List[int] :type nums2: List[int] :rtype: float
0004.寻找两个有序数组的中位数/0004-寻找两个有序数组的中位数.py:22
MethodfindMedianSortedArrays
:type nums1: List[int] :type nums2: List[int] :rtype: float
0004.寻找两个正序数组的中位数/0004-寻找两个正序数组的中位数.py:2
MethodfindMin
:type nums: List[int] :rtype: int
0154.寻找旋转排序数组中的最小值II/0154-寻找旋转排序数组中的最小值II.py:2
MethodfindMin
:type nums: List[int] :rtype: int
0153.寻找旋转排序数组中的最小值/0153-寻找旋转排序数组中的最小值.py:2
MethodfindMinArrowShots
:type points: List[List[int]] :rtype: int
0452.用最少数量的箭引爆气球/0452-用最少数量的箭引爆气球.py:2
MethodfindMinArrowShots
0452.用最少数量的箭引爆气球/0452-用最少数量的箭引爆气球.cpp:12
MethodfindMissingRanges
:type nums: List[int] :type lower: int :type upper: int :rtype: List[str]
0163.缺失的区间/0163-缺失的区间.py:2
MethodfindMode
:type root: TreeNode :rtype: List[int]
0501.二叉搜索树中的众数/0501-二叉搜索树中的众数.py:9
MethodfindMustVisitNodesDFS
(node, path, visited)
1443.收集树上所有苹果的最少时间/1443-收集树上所有苹果的最少时间.py:17
MethodfindOcurrences
:type text: str :type first: str :type second: str :rtype: List[str]
1078.Bigram分词/1078-Bigram分词.py:2
MethodfindOrder
(self, numCourses: int, prerequisites: List[List[int]])
0210.课程表II/0210-课程表II.py:2
MethodfindPeakElement
:type nums: List[int] :rtype: int
0162.寻找峰值/0162-寻找峰值.py:2
MethodfindPoisonedDuration
:type timeSeries: List[int] :type duration: int :rtype: int
0495.提莫攻击/0495-提莫攻击.py:2
MethodfindRedundantConnection
:type edges: List[List[int]] :rtype: List[int]
0684.冗余连接/0684-冗余连接.py:39
MethodfindRelativeRanks
(self, score: List[int])
0506.相对名次/0506-相对名次.py:2
MethodfindRelativeRanks
(int[] nums)
0506.相对名次/0506-相对名次.java:2
MethodfindRelativeRanks
(self, score: List[int])
LeetCode-Python/0506.相对名次/0506-相对名次.py:2
MethodfindRepeatNumber
(self, nums: List[int])
剑指 Offer 03.数组中重复的数字/剑指 Offer 03-数组中重复的数字.py:2
MethodfindRepeatNumber
(self, nums: List[int])
LeetCode-Python/剑指 Offer 03.数组中重复的数字/剑指 Offer 03-数组中重复的数字.py:2
MethodfindRepeatNumber
:type nums: List[int] :rtype: int
面试题03.数组中重复的数字/面试题03-数组中重复的数字.py:2
MethodfindRepeatedDnaSequences
:type s: str :rtype: List[str]
0187.重复的DNA序列/0187-重复的DNA序列.py:2
MethodfindRestaurant
:type list1: List[str] :type list2: List[str] :rtype: List[str]
0599.两个列表的最小索引总和/0599-两个列表的最小索引总和.py:2
MethodfindRightInterval
:type intervals: List[List[int]] :rtype: List[int]
0436.寻找右区间/0436-寻找右区间.py:2
MethodfindSecondMinimumValue
:type root: TreeNode :rtype: int
0671.二叉树中第二小的节点/0671-二叉树中第二小的节点.py:9
MethodfindShortestSubArray
:type nums: List[int] :rtype: int
0697.数组的度/0697-数组的度.py:2
MethodfindSolution
(self, customfunction: 'CustomFunction', z: int)
1237.找出给定方程的正整数解/1237-找出给定方程的正整数解.py:13
MethodfindSolution
(self, customfunction: 'CustomFunction', z: int)
LeetCode-Python/1237.找出给定方程的正整数解/1237-找出给定方程的正整数解.py:13
MethodfindStrobogrammatic
:type n: int :rtype: List[str]
0247.中心对称数II/0247-中心对称数II.py:2
MethodfindTarget
(self, root: TreeNode, k: int)
剑指 Offer II 056.二叉搜索树中两个节点之和/剑指 Offer II 056-二叉搜索树中两个节点之和.py:8
MethodfindTarget
:type root: TreeNode :type k: int :rtype: bool
0653.两数之和IV-输入BST/0653-两数之和IV-输入BST.py:8
MethodfindTarget
(self, root: TreeNode, k: int)
LeetCode-Python/剑指 Offer II 056.二叉搜索树中两个节点之和/剑指 Offer II 056-二叉搜索树中两个节点之和.py:8
MethodfindTarget
(self, root: Optional[TreeNode], k: int)
LeetCode-Python/0653.两数之和IV-输入二叉搜索树/0653-两数之和IV-输入二叉搜索树.py:8
MethodfindTarget
(self, root: Optional[TreeNode], k: int)
0653.两数之和IV-输入二叉搜索树/0653-两数之和IV-输入二叉搜索树.py:8
MethodfindTheArrayConcVal
(self, nums: List[int])
2562.找出数组的串联值/2562-找出数组的串联值.py:2
MethodfindTheArrayConcVal
(self, nums: List[int])
LeetCode-Python/2562.找出数组的串联值/2562-找出数组的串联值.py:2
MethodfindTheCity
:type n: int :type edges: List[List[int]] :type distanceThreshold: int :rtype: int
1334.阈值距离内邻居最少的城市/1334-阈值距离内邻居最少的城市.py:2
MethodfindTheDifference
:type s: str :type t: str :rtype: str
0389.找不同/0389-找不同.py:2
MethodfindThreeSum
(num, l, t)
0018.四数之和/0018-四数之和.py:12
MethodfindUnsortedSubarray
:type nums: List[int] :rtype: int
0581.最短无序连续子数组/0581-最短无序连续子数组.py:2
MethodfindWhetherExistsPath
(self, n: int, graph: List[List[int]], start: int, target: int)
LeetCode-Python/面试题 04.01.节点间通路/面试题 04.01-节点间通路.py:3
MethodfindWhetherExistsPath
(self, n: int, graph: List[List[int]], start: int, target: int)
面试题 04.01.节点间通路/面试题 04.01-节点间通路.py:3
MethodfindWords
:type board: List[List[str]] :type words: List[str] :rtype: List[str]
0212.单词搜索II/0212-单词搜索II.py:47
MethodfindWords
(self, words: List[str])
LeetCode-Python/0500.键盘行/0500-键盘行.py:2
MethodfindWords
:type words: List[str] :rtype: List[str]
0500.键盘行/0500-键盘行 2.py:2
MethodfindWords
:type words: List[str] :rtype: List[str]
0500.键盘行/0500-键盘行.py:2
MethodfirstBadVersion
:type n: int :rtype: int
0278.第一个错误的版本/0278-第一个错误的版本.py:7
MethodfirstMissingPositive
:type nums: List[int] :rtype: int
0041.缺失的第一个正数/0041-缺失的第一个正数.py:2
MethodfirstPalindrome
(self, words: List[str])
2108.找出数组中的第一个回文字符串/2108-找出数组中的第一个回文字符串.py:2
MethodfirstPalindrome
(self, words: List[str])
LeetCode-Python/2108.找出数组中的第一个回文字符串/2108-找出数组中的第一个回文字符串.py:2
MethodfirstUniqChar
:type s: str :rtype: str
面试题50.第一个只出现一次的字符/面试题50-第一个只出现一次的字符.py:2
MethodfirstUniqChar
0387.字符串中的第一个唯一字符/0387-字符串中的第一个唯一字符.cpp:3
MethodfirstUniqChar
:type s: str :rtype: int
0387.字符串中的第一个唯一字符/0387-字符串中的第一个唯一字符.py:2
MethodfizzBuzz
(self, n: int)
LeetCode-Python/0412.FizzBuzz/0412-FizzBuzz.py:2
MethodfizzBuzz
:type n: int :rtype: List[str]
0412.FizzBuzz/0412-FizzBuzz 2.py:2
MethodfizzBuzz
:type n: int :rtype: List[str]
0412.FizzBuzz/0412-FizzBuzz.py:2
Methodflatten
:type head: Node :rtype: Node
0430.扁平化多级双向链表/0430-扁平化多级双向链表.py:11
Methodflatten
Do not return anything, modify root in-place instead.
LeetCode-Python/0114.二叉树展开为链表/0114-二叉树展开为链表.py:8
Methodflatten
:type root: TreeNode :rtype: None Do not return anything, modify root in-place instead.
0114.二叉树展开为链表/0114-二叉树展开为链表 2.py:8
Methodflatten
:type root: TreeNode :rtype: None Do not return anything, modify root in-place instead.
0114.二叉树展开为链表/0114-二叉树展开为链表.py:8
MethodflipAndInvertImage
:type A: List[List[int]] :rtype: List[List[int]]
0832.翻转图像/0832-翻转图像.py:2
← previousnext →701–800 of 2,012, ranked by callers