MCPcopy Create free account

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

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

↓ 61 callersMethodadd
:type key: int :rtype: None
0705.设计哈希集合/0705-设计哈希集合.py:9
↓ 49 callersMethodpop
:rtype: None
0155.最小栈/0155-最小栈.py:21
↓ 44 callersMethodcount
(x0, y0)
0361.轰炸敌人/0361-轰炸敌人.py:11
↓ 43 callersMethodadd
:type num: int :rtype: None
1352.最后K个数的乘积/1352-最后K个数的乘积.py:6
↓ 33 callersMethodadd
(self, number: int)
LeetCode-Python/2671.频率跟踪器/2671-频率跟踪器.py:8
↓ 31 callersMethodpop
(self)
LeetCode-Python/0155.最小栈/0155-最小栈.py:14
↓ 23 callersMethodpop
:rtype: int
1172.餐盘栈/1172-餐盘栈.py:27
↓ 17 callersMethodextend
(left, right)
0647.回文子串/0647-回文子串.py:9
↓ 16 callersMethodremove
:type key: int :rtype: None
0705.设计哈希集合/0705-设计哈希集合.py:17
↓ 14 callersMethodadd
Add the number to an internal data structure.. :type number: int :rtype: None
0170.两数之和III-数据结构设计/0170-两数之和III-数据结构设计.py:10
↓ 13 callersMethodadd
(self, number: int)
2671.频率跟踪器/2671-频率跟踪器.py:8
↓ 13 callersMethodadd
(self, val: int)
LeetCode-Python/0703.数据流中的第K大元素/0703-数据流中的第K大元素.py:12
↓ 12 callersMethodget
:type index: int :type snap_id: int :rtype: int
1146.快照数组/1146-快照数组.py:28
↓ 11 callersMethodget
Returns the value to which the specified key is mapped, or -1 if this map contains no mapping for the key :type key: int :rty
0706.设计哈希映射/0706-设计哈希映射.py:18
↓ 10 callersMethodpush_back
:type value: int :rtype: None
面试题59-II.队列的最大值/面试题59-II-队列的最大值.py:14
↓ 7 callersMethodadd
:type a: int :type b: int :rtype: int
面试题 17.01.不用加号的加法/面试题 17.01-不用加号的加法.py:2
↓ 5 callersMethodadd
:type a: int :type b: int :rtype: int
面试题65.不用加减乘除做加法/面试题65-不用加减乘除做加法.py:2
↓ 5 callersMethodinsert
:type key: str :type val: int :rtype: None
0677.键值映射/0677-键值映射.py:10
↓ 5 callersMethodpop
Removes the element from in front of queue and returns that element. :rtype: int
0232.用栈实现队列/0232-用栈实现队列.py:18
↓ 4 callersMethodadd
(self, val: int)
剑指 Offer II 059.数据流的第K大数值/剑指 Offer II 059-数据流的第K大数值.py:12
↓ 4 callersMethodfind
(self, member)
0684.冗余连接/0684-冗余连接.py:17
↓ 4 callersMethodfind
(self, node)
0261.以图判树/0261-以图判树.py:6
↓ 4 callersMethodfind
(self, member)
1559.二维网格图中探测环/1559-二维网格图中探测环.py:33
↓ 4 callersMethodfind
(self, member)
1584.连接所有点的最小费用/1584-连接所有点的最小费用.py:9
↓ 4 callersMethodfind
(self, member)
1168.水资源分配优化/1168-水资源分配优化.py:9
↓ 3 callersMethodadd
(self, val: int)
LeetCode-Python/剑指 Offer II 059.数据流的第K大数值/剑指 Offer II 059-数据流的第K大数值.py:12
↓ 3 callersMethodfind
(i, j)
0044.通配符匹配/0044-通配符匹配.py:18
↓ 3 callersMethodfind
(self, member)
0323.无向图中连通分量的数目/0323-无向图中连通分量的数目.py:12
↓ 3 callersMethodget
(self, word: str)
LeetCode-Python/面试题 16.02.单词频率/面试题 16.02-单词频率.py:7
↓ 3 callersMethodisEmpty
Checks whether the circular queue is empty or not. :rtype: bool
0622.设计循环队列/0622-设计循环队列.py:61
↓ 3 callersMethodpop
:rtype: None
面试题30.包含min函数的栈/面试题30-包含min函数的栈.py:25
↓ 3 callersMethodpop
:rtype: int
1381.设计一个支持增量操作的栈/1381-设计一个支持增量操作的栈.py:17
↓ 3 callersMethodsumOfDigit
(self, word)
1880.检查某单词是否等于两单词之和/1880-检查某单词是否等于两单词之和.py:5
↓ 3 callersMethodsumOfDigit
(self, word)
LeetCode-Python/1880.检查某单词是否等于两单词之和/1880-检查某单词是否等于两单词之和.py:5
↓ 2 callersMethodCarrySolver
(self, nums)
0043.字符串相乘/0043-字符串相乘.py:36
↓ 2 callersMethodcenteralExtend
(self, string, left, right, dp)
0132.分割回文串II/0132-分割回文串II.py:21
↓ 2 callersMethodcentralSpread
(self, left, right, s)
0005.最长回文子串/0005-最长回文子串.py:17
↓ 2 callersMethodconvertToDec
(self, arr)
1073.负二进制数相加/1073-负二进制数相加.py:13
↓ 2 callersMethodconvertToDec
(self, arr)
LeetCode-Python/1073.负二进制数相加/1073-负二进制数相加.py:13
↓ 2 callersMethodcountVowels
(self, s)
LeetCode-Python/1704.判断字符串的两半是否相似/1704-判断字符串的两半是否相似.py:6
↓ 2 callersMethodcountVowels
(self, s)
1704.判断字符串的两半是否相似/1704-判断字符串的两半是否相似.py:6
↓ 2 callersMethoddiffWaysToCompute
:type input: str :rtype: List[int]
0241.为运算表达式设计优先级/0241-为运算表达式设计优先级.py:2
↓ 2 callersMethodempty
Returns whether the stack is empty. */
0225.用队列实现栈/0225-用队列实现栈.cpp:38
↓ 2 callersMethodfind
(node, path)
1026.节点与其祖先之间的最大差值/1026-节点与其祖先之间的最大差值.py:16
↓ 2 callersMethodfind
Find if there exists any pair of numbers which sum is equal to the value. :type value: int :rtype: bool
0170.两数之和III-数据结构设计/0170-两数之和III-数据结构设计.py:18
↓ 2 callersMethodfind
(self, member)
1319.连通网络的操作次数/1319-连通网络的操作次数.py:8
↓ 2 callersMethodfindDepth
(self, node, value)
0993.二叉树的堂兄弟节点/0993-二叉树的堂兄弟节点.py:28
↓ 2 callersMethodfindFather
(self, node, value)
0993.二叉树的堂兄弟节点/0993-二叉树的堂兄弟节点.py:37
↓ 2 callersMethodfindMedian
(self, nums)
0296.最佳的碰头地点/0296-最佳的碰头地点.py:27
↓ 2 callersMethodfindPath
(self, root, node, path)
0235.二叉搜索树的最近公共祖先/0235-二叉搜索树的最近公共祖先.py:35
↓ 2 callersMethodget
:type key: int :rtype: int
0146.LRU缓存机制/0146-LRU缓存机制.py:20
↓ 2 callersMethodget
Provide a number which is not assigned to anyone. @return - Return an available number. Return -1 if none is available. :rtyp
0379.电话目录/0379-电话目录.py:12
↓ 2 callersMethodgetFragmentedSum
(self, nums, dups)
1537.最大得分/1537-最大得分.py:18
↓ 2 callersMethodgetLength
(self, l)
0002.两数相加/0002-两数相加 2.py:34
↓ 2 callersMethodgetLength
(self, l)
0002.两数相加/0002-两数相加.py:34
↓ 2 callersMethodinsert
(self, val)
0004.寻找两个有序数组的中位数/0004-寻找两个有序数组的中位数.py:9
↓ 2 callersMethodinsertToHead
(self, node)
面试题16.25.LRU缓存/面试题16.25-LRU缓存.py:49
↓ 2 callersMethodinsertToHead
(self, node)
0146.LRU缓存机制/0146-LRU缓存机制.py:50
↓ 2 callersMethodmoveToHead
(self, node)
面试题16.25.LRU缓存/面试题16.25-LRU缓存.py:56
↓ 2 callersMethodmoveToHead
(self, node)
0146.LRU缓存机制/0146-LRU缓存机制.py:67
↓ 2 callersMethodpop
Removes the element on top of the stack and returns that element. :rtype: int
0225.用队列实现栈/0225-用队列实现栈.py:22
↓ 2 callersMethodpop
Removes the element on top of the stack and returns that element. */
0225.用队列实现栈/0225-用队列实现栈.cpp:24
↓ 2 callersMethodput
value will always be non-negative. :type key: int :type value: int :rtype: None
0706.设计哈希映射/0706-设计哈希映射.py:9
↓ 2 callersMethodrelease
Recycle or release a number. :type number: int :rtype: None
0379.电话目录/0379-电话目录.py:32
↓ 2 callersMethodreverse
:type x: int :rtype: int
0007.整数反转/0007-整数反转.py:2
↓ 2 callersMethodreverseLL
(self, head)
0092.反转链表II/0092-反转链表II 2.py:44
↓ 2 callersMethodreverseLL
(self, head)
0092.反转链表II/0092-反转链表II.py:44
↓ 2 callersMethodreverseList
:type head: ListNode :rtype: ListNode
0369.给单链表加一/0369-给单链表加一.py:8
↓ 2 callersMethodrob2
:type nums: List[int] :rtype: int
0213.打家劫舍II/0213-打家劫舍II.py:11
↓ 2 callersMethodrob2
:type nums: List[int] :rtype: int
0213.打家劫舍II/0213-打家劫舍II 2.py:11
↓ 2 callersMethodtime1EarlierThanTime2
(self, time1, time2)
2446.判断两个事件是否存在冲突/2446-判断两个事件是否存在冲突.py:5
↓ 2 callersMethodtime1EarlierThanTime2
(self, time1, time2)
LeetCode-Python/2446.判断两个事件是否存在冲突/2446-判断两个事件是否存在冲突.py:5
↓ 2 callersMethodunion
(self, p, q)
0684.冗余连接/0684-冗余连接.py:26
↓ 2 callersMethodunion
(self, p, q)
1168.水资源分配优化/1168-水资源分配优化.py:18
↓ 1 callersMethodCarrySolver
(self, nums)
0415.字符串相加/0415-字符串相加.py:22
↓ 1 callersMethodStringMultiplyDigit
(self,string, n)
0043.字符串相乘/0043-字符串相乘.py:24
↓ 1 callersMethodStringPlusString
(self, s1, s2)
0043.字符串相乘/0043-字符串相乘.py:52
↓ 1 callersMethodcanPermutePalindrome
:type s: str :rtype: bool
0267.回文排列II/0267-回文排列II.py:35
↓ 1 callersMethodcheck
(self, ma)
0840.矩阵中的幻方/0840-矩阵中的幻方.py:28
↓ 1 callersMethodcheck
(self, row, col, toe)
0348.判定井字棋胜负/0348-判定井字棋胜负.py:32
↓ 1 callersMethodconstructMaximumBinaryTree
:type nums: List[int] :rtype: TreeNode
0998.最大二叉树II/0998-最大二叉树II.py:32
↓ 1 callersMethodfindBucketIndex
(self, num, min_val, max_val, n)
0164.最大间距/0164-最大间距.py:29
↓ 1 callersMethodfindClosestC
(self, i, record)
0821.字符的最短距离/0821-字符的最短距离.py:24
↓ 1 callersMethodfindLCS
(self, str1, str2)
1092.最短公共超序列/1092-最短公共超序列.py:35
↓ 1 callersMethodfindMedian
(self)
0004.寻找两个有序数组的中位数/0004-寻找两个有序数组的中位数.py:15
↓ 1 callersMethodfindStrobogrammatic
:type n: int :rtype: List[str]
0248.中心对称数III/0248-中心对称数III.py:35
↓ 1 callersMethodgcd
(x, y)
1250.检查「好数组」/1250-检查「好数组」.py:7
↓ 1 callersMethodgetDistance
(self, x1, y1, x2, y2)
LeetCode-Python/0973.最接近原点的K个点/0973-最接近原点的K个点.py:14
↓ 1 callersMethodhasNext
:rtype: bool
0284.顶端迭代器/0284-顶端迭代器.py:49
↓ 1 callersMethodhasPalindromic
(self, nums)
1457.二叉树中的伪回文路径/1457-二叉树中的伪回文路径.py:30
↓ 1 callersMethodhelper
(self, queue)
0297.二叉树的序列化与反序列化/0297-二叉树的序列化与反序列化.py:38
↓ 1 callersMethodinorder
(self, root, result)
0998.最大二叉树II/0998-最大二叉树II.py:23
↓ 1 callersMethodinsert
Inserts a word into the trie. :type word: str :rtype: None
0820.单词的压缩编码/0820-单词的压缩编码.py:9
↓ 1 callersMethodinsert
Inserts a word into the trie. :type word: str :rtype: None
0212.单词搜索II/0212-单词搜索II.py:8
↓ 1 callersMethodinsert
(self, root, val, i, res)
0315.计算右侧小于当前元素的个数/0315-计算右侧小于当前元素的个数.py:22
↓ 1 callersMethodisFull
Checks whether the circular queue is full or not. :rtype: bool
0622.设计循环队列/0622-设计循环队列.py:68
↓ 1 callersMethodisSameTree
(self, t1, t2)
0572.另一个树的子树/0572-另一个树的子树.py:25
↓ 1 callersMethodisValid
(self, tmp, x0, y0, n)
0052.N皇后II/0052-N皇后II.py:22
↓ 1 callersMethodisValid
(self, tmp, x0, y0, n)
0051.N皇后/0051-N皇后.py:22
↓ 1 callersMethodisValidSudoku
(self, board: List[List[str]])
0037.解数独/0037-解数独.py:53
next →1–100 of 2,012, ranked by callers