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
getWinner
:type arr: List[int] :type k: int :rtype: int
1535.找出数组游戏的赢家/1535-找出数组游戏的赢家.py:2
Method
goodNodes
:type root: TreeNode :rtype: int
1448.统计二叉树中好节点的数目/1448-统计二叉树中好节点的数目.py:8
Method
grayCode
:type n: int :rtype: List[int]
0089.格雷编码/0089-格雷编码.py:2
Method
greatestLetter
(self, s: str)
2309.兼具大小写的最好英文字母/2309-兼具大小写的最好英文字母.py:2
Method
greatestLetter
(self, s: str)
LeetCode-Python/2309.兼具大小写的最好英文字母/2309-兼具大小写的最好英文字母.py:2
Method
groupAnagrams
(self, strs: List[str])
面试题 10.02.变位词组/面试题 10.02-变位词组.py:2
Method
groupAnagrams
:type strs: List[str] :rtype: List[List[str]]
0049.字母异位词分组/0049-字母异位词分组.py:2
Method
groupAnagrams
:type strs: List[str] :rtype: List[List[str]]
0049.字母异位词分组/0049-字母异位词分组 2.py:2
Method
groupAnagrams
(self, strs: List[str])
LeetCode-Python/面试题 10.02.变位词组/面试题 10.02-变位词组.py:2
Method
groupAnagrams
(self, strs: List[str])
LeetCode-Python/0049.字母异位词分组/0049-字母异位词分组.py:2
Method
groupStrings
:type strings: List[str] :rtype: List[List[str]]
0249.移位字符串分组/0249-移位字符串分组.py:2
Method
groupThePeople
(self, groupSizes: List[int])
1282.用户分组/1282-用户分组.py:2
Method
groupThePeople
(self, groupSizes: List[int])
LeetCode-Python/1282.用户分组/1282-用户分组.py:2
Method
guessNumber
:type n: int :rtype: int
0374.猜数字大小/0374-猜数字大小.py:7
Method
hIndex
:type citations: List[int] :rtype: int
0275.H指数II/0275-H指数II.py:2
Method
hIndex
:type citations: List[int] :rtype: int
0274.H指数/0274-H指数.py:2
Method
halvesAreAlike
(self, s: str)
LeetCode-Python/1704.判断字符串的两半是否相似/1704-判断字符串的两半是否相似.py:2
Method
halvesAreAlike
(self, s: str)
1704.判断字符串的两半是否相似/1704-判断字符串的两半是否相似.py:2
Method
hammingDistance
:type x: int :type y: int :rtype: int
0461.汉明距离/0461-汉明距离.py:2
Method
hammingWeight
:type n: int :rtype: int
0191.位1的个数/0191-位1的个数.py:2
Method
happy
(num)
0202.快乐数/0202-快乐数.py:7
Method
happy
(num)
0202.快乐数/0202-快乐数 2.py:7
Method
hasAllCodes
:type s: str :type k: int :rtype: bool
1461.检查一个字符串是否包含所有长度为K的二进制子串/1461-检查一个字符串是否包含所有长度为K的二进制子串.py:2
Method
hasAlternatingBits
:type n: int :rtype: bool
0693.交替位二进制数/0693-交替位二进制数.py:2
Method
hasCycle
0141.环形链表/0141-环形链表.cpp:11
Method
hasCycle
:type head: ListNode :rtype: bool
0141.环形链表/0141-环形链表.py:8
Method
hasCycle
:type head: ListNode :rtype: bool
0141.环形链表/0141-环形链表 2.py:8
Method
hasCycle
(self, head: Optional[ListNode])
LeetCode-Python/0141.环形链表/0141-环形链表.py:8
Method
hasFrequency
(self, frequency: int)
2671.频率跟踪器/2671-频率跟踪器.py:26
Method
hasFrequency
(self, frequency: int)
LeetCode-Python/2671.频率跟踪器/2671-频率跟踪器.py:26
Method
hasGroupsSizeX
:type deck: List[int] :rtype: bool
0914.卡牌分组/0914-卡牌分组.py:2
Method
hasNext
:rtype: bool
0341.扁平化嵌套列表迭代器/0341-扁平化嵌套列表迭代器.py:44
Method
hasNext
@return whether we have a next smallest number :rtype: bool
0173.二叉搜索树迭代器/0173-二叉搜索树迭代器.py:34
Method
hasNext
:rtype: bool
0251.展开二维向量/0251-展开二维向量.py:22
Method
hasNext
:rtype: bool
0281.锯齿迭代器/0281-锯齿迭代器.py:34
Method
hasNext
(self)
LeetCode-Python/剑指 Offer II 055.二叉搜索树迭代器/剑指 Offer II 055-二叉搜索树迭代器.py:21
Method
hasNext
(self)
剑指 Offer II 055.二叉搜索树迭代器/剑指 Offer II 055-二叉搜索树迭代器.py:21
Method
hasPathSum
:type root: TreeNode :type sum: int :rtype: bool
0112.路径总和/0112-路径总和.py:9
Method
hasPathSum
:type root: TreeNode :type sum: int :rtype: bool
0112.路径总和/0112-路径总和 2.py:9
Method
hasPathSum
(self, root: Optional[TreeNode], targetSum: int)
LeetCode-Python/0112.路径总和/0112-路径总和.py:8
Method
hasValidPath
:type grid: List[List[int]] :rtype: bool
1391.检查网格中是否存在有效路径/1391-检查网格中是否存在有效路径.py:2
Method
haveConflict
(self, event1: List[str], event2: List[str])
2446.判断两个事件是否存在冲突/2446-判断两个事件是否存在冲突.py:2
Method
haveConflict
(self, event1: List[str], event2: List[str])
LeetCode-Python/2446.判断两个事件是否存在冲突/2446-判断两个事件是否存在冲突.py:2
Method
heightChecker
:type heights: List[int] :rtype: int
1051.高度检查器/1051-高度检查器.py:2
Method
helper
(node)
0430.扁平化多级双向链表/0430-扁平化多级双向链表.py:19
Method
helper
(string, cnt)
1028.从先序遍历还原二叉树/1028-从先序遍历还原二叉树.py:15
Method
helper
(n, s)
2698.求一个整数的惩罚数/2698-求一个整数的惩罚数.py:14
Method
helper
(num)
0273.整数转换英文表示/0273-整数转换英文表示.py:7
Method
helper
(A, aa)
0844.比较含退格的字符串/0844-比较含退格的字符串.py:10
Method
helper
(s, memo)
0140.单词拆分II/0140-单词拆分II.py:4
Method
helper
(last, k)
0265.粉刷房子II/0265-粉刷房子II.py:10
Method
helper
(s)
0294.翻转游戏II/0294-翻转游戏II.py:8
Method
helper
(n, s)
LeetCode-Python/2698.求一个整数的惩罚数/2698-求一个整数的惩罚数.py:14
Method
helper
(left:Optional[TreeNode], right: Optional[TreeNode])
LeetCode-Python/0101.对称二叉树/0101-对称二叉树.py:28
Method
helper
(pair1, pair2)
1266.访问所有点的最小时间/1266-访问所有点的最小时间.py:7
Method
helper
(word, letter_dic)
1255.得分最高的单词集合/1255-得分最高的单词集合.py:29
Method
highFive
:type items: List[List[int]] :rtype: List[List[int]]
1086.前五科的均分/1086-前五科的均分.py:3
Method
hit
Record a hit. @param timestamp - The current timestamp (in seconds granularity). :type timestamp: int :rtype: None
0362.敲击计数器/0362-敲击计数器.py:10
Method
inOrder
(node)
0272.最接近的二叉搜索树值II/0272-最接近的二叉搜索树值II.py:16
Method
inOrder
(node)
0272.最接近的二叉搜索树值II/0272-最接近的二叉搜索树值II 2.py:16
Method
inOrder
(node)
0099.恢复二叉搜索树/0099-恢复二叉搜索树.py:14
Method
inOrder
(node)
0270.最接近的二叉搜索树值/0270-最接近的二叉搜索树值.py:16
Method
increasingBST
(self, root: TreeNode)
剑指 Offer II 052.展平二叉搜索树/剑指 Offer II 052-展平二叉搜索树.py:8
Method
increasingBST
(self, root: TreeNode)
0897.递增顺序搜索树/0897-递增顺序搜索树.py:8
Method
increasingBST
(self, root: TreeNode)
LeetCode-Python/剑指 Offer II 052.展平二叉搜索树/剑指 Offer II 052-展平二叉搜索树.py:8
Method
increasingBST
(self, root: TreeNode)
LeetCode-Python/0897.递增顺序搜索树/0897-递增顺序搜索树.py:8
Method
increasingBST
:type root: TreeNode :rtype: TreeNode
0897.递增顺序查找树/0897-递增顺序查找树.py:9
Method
increment
:type k: int :type val: int :rtype: None
1381.设计一个支持增量操作的栈/1381-设计一个支持增量操作的栈.py:24
Method
inorder
(node)
0783.二叉搜索树结点最小距离/0783-二叉搜索树结点最小距离.py:15
Method
inorder
(node)
0285.二叉搜索树中的顺序后继/0285-二叉搜索树中的顺序后继.py:17
Method
inorder
(node)
0501.二叉搜索树中的众数/0501-二叉搜索树中的众数.py:14
Method
inorder
(node)
剑指 Offer II 052.展平二叉搜索树/剑指 Offer II 052-展平二叉搜索树.py:10
Method
inorder
(node)
剑指 Offer 54.二叉搜索树的第k大节点/剑指 Offer 54-二叉搜索树的第k大节点.py:12
Method
inorder
(node)
0098.验证二叉搜索树/0098-验证二叉搜索树.py:14
Method
inorder
(node)
LCP 44.开幕式焰火/LCP 44-开幕式焰火.py:9
Method
inorder
(node)
剑指 Offer II 056.二叉搜索树中两个节点之和/剑指 Offer II 056-二叉搜索树中两个节点之和.py:12
Method
inorder
(node)
面试题54.二叉搜索树的第k大节点/面试题54-二叉搜索树的第k大节点.py:15
Method
inorder
(node)
1038.从二叉搜索树到更大和树/1038-从二叉搜索树到更大和树 2.py:16
Method
inorder
(node)
1038.从二叉搜索树到更大和树/1038-从二叉搜索树到更大和树.py:16
Method
inorder
(node)
1120.子树的最大平均值/1120-子树的最大平均值.py:17
Method
inorder
(node)
面试题 04.06.后继者/面试题 04.06-后继者.py:11
Method
inorder
(node)
0530.二叉搜索树的最小绝对差/0530-二叉搜索树的最小绝对差.py:14
Method
inorder
(node)
面试题 04.05.合法二叉搜索树/面试题 04.05-合法二叉搜索树.py:10
Method
inorder
(node)
0897.递增顺序搜索树/0897-递增顺序搜索树.py:9
Method
inorder
(node)
LeetCode-Python/0700.二叉搜索树中的搜索/0700-二叉搜索树中的搜索.py:10
Method
inorder
(node)
LeetCode-Python/0272.最接近的二叉搜索树值II/0272-最接近的二叉搜索树值II.py:12
Method
inorder
(node)
LeetCode-Python/0222.完全二叉树的节点个数/0222-完全二叉树的节点个数.py:9
Method
inorder
(node)
LeetCode-Python/剑指 Offer II 052.展平二叉搜索树/剑指 Offer II 052-展平二叉搜索树.py:10
Method
inorder
(node)
LeetCode-Python/剑指 Offer 54.二叉搜索树的第k大节点/剑指 Offer 54-二叉搜索树的第k大节点.py:12
Method
inorder
(node)
LeetCode-Python/LCP 44.开幕式焰火/LCP 44-开幕式焰火.py:9
Method
inorder
(node)
LeetCode-Python/剑指 Offer II 056.二叉搜索树中两个节点之和/剑指 Offer II 056-二叉搜索树中两个节点之和.py:12
Method
inorder
(node)
LeetCode-Python/面试题 04.06.后继者/面试题 04.06-后继者.py:11
Method
inorder
(node)
LeetCode-Python/面试题 04.05.合法二叉搜索树/面试题 04.05-合法二叉搜索树.py:10
Method
inorder
(node)
LeetCode-Python/0897.递增顺序搜索树/0897-递增顺序搜索树.py:9
Method
inorder
(node)
LeetCode-Python/0653.两数之和IV-输入二叉搜索树/0653-两数之和IV-输入二叉搜索树.py:12
Method
inorder
(node)
LeetCode-Python/剑指 Offer II 055.二叉搜索树迭代器/剑指 Offer II 055-二叉搜索树迭代器.py:9
Method
inorder
(node)
LeetCode-Python/0938.二叉搜索树的范围和/0938-二叉搜索树的范围和.py:10
Method
inorder
(node)
LeetCode-Python/0230.二叉搜索树中第K小的元素/0230-二叉搜索树中第K小的元素.py:11
Method
inorder
(node)
0653.两数之和IV-输入二叉搜索树/0653-两数之和IV-输入二叉搜索树.py:12
Method
inorder
(node)
剑指 Offer II 055.二叉搜索树迭代器/剑指 Offer II 055-二叉搜索树迭代器.py:9
← previous
next →
901–1,000 of 2,012, ranked by callers