Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/acm-clan/algorithm-stone
/ functions
Functions
957 in github.com/acm-clan/algorithm-stone
⨍
Functions
957
◇
Types & classes
462
Method
insertFront
Adds an item at the front of Deque. Return true if the operation is successful. */
user/leetcode/641.设计循环双端队列.cpp:16
Method
insertLast
Adds an item at the rear of Deque. Return true if the operation is successful. */
user/leetcode/641.设计循环双端队列.cpp:21
Method
insert_fixup
1 父子节点之间不能出现两个连续的红节点 2 任何一个节点向下遍历到其子孙的叶子节点,所经过的黑节点个数必须相等 */
templates/rb.cpp:211
Method
insertionSortList
user/leetcode/147. 对链表进行插入排序.cpp:20
Method
intToRoman
user/leetcode/12.整数转罗马数字.cpp:10
Method
intersect
user/leetcode/350.两个数组的交集-ii.cpp:10
Method
intersection
user/leetcode/349.两个数组的交集.cpp:16
Method
invertTree
user/leetcode/226.翻转二叉树.cpp:21
Method
isBalanced
user/leetcode/110.平衡二叉树.cpp:25
Method
isEmpty
Checks whether the circular deque is empty or not. */
user/leetcode/641.设计循环双端队列.cpp:46
Method
isEmpty
user/leetcode/622.设计循环队列.cpp:49
Method
isEvenOddTree
user/leetcode/1609.奇偶树.cpp:21
Method
isFull
Checks whether the circular deque is full or not. */
user/leetcode/641.设计循环双端队列.cpp:51
Method
isFull
user/leetcode/622.设计循环队列.cpp:53
Method
isLeaf
(self)
animations/src/algo_rbtree.py:49
Method
isMatch
user/leetcode/44.通配符匹配.cpp:10
Method
isNStraightHand
user/leetcode/846.一手顺子.cpp:10
Method
isNumber
user/leetcode/150.逆波兰表达式求值.cpp:41
Method
isNumber
user/leetcode/65.有效数字.cpp:10
Method
isPalindrome
user/leetcode/125.验证回文串.cpp:10
Method
isPalindrome
user/leetcode/336.回文对.cpp:46
Method
isPalindrome
简单的做法为 把链表的值入栈,再出栈比对。 时间复杂度O(n) 空间复杂度O(1) 前半部分 和 后半部分的值相等 反转后半部分(使用栈) 得到前半部分
user/leetcode/234.回文链表.cpp:24
Method
isPerfectSquare
user/leetcode/367.有效的完全平方数.cpp:16
Method
isPossible
user/leetcode/659.分割数组为连续子序列.cpp:10
Method
isSameTree
user/leetcode/100.相同的树.cpp:21
Method
isScramble
user/leetcode/87.扰乱字符串.cpp:10
Method
isSubPath
枚举选择起点
user/leetcode/1367. 二叉树中的列表.cpp:40
Method
isSubsequence
(self, s: str, t: str)
user/leetcode/392.判断子序列.py:9
Method
isSubsequence
user/leetcode/392.判断子序列.cpp:10
Method
isSubtree
user/leetcode/572.另一个树的子树.cpp:38
Method
isSymmetric
user/leetcode/101.对称二叉树.cpp:21
Method
isTransformable
user/leetcode/1585.检查字符串是否可以通过排序子字符串得到另一个字符串.cpp:10
Method
isValid
user/leetcode/591.标签验证器.cpp:10
Method
isValid
user/leetcode/20.有效的括号.cpp:10
Method
isValid
user/leetcode/1003.检查替换后的词是否有效.cpp:10
Method
isValidBST
user/leetcode/98.验证二叉搜索树.cpp:21
Function
is_int
(s)
src/util.py:36
Method
is_valid_title
(self, title)
src/codeforces_view.py:28
Method
is_valid_title
(self, title)
src/leetcode_view.py:27
Method
judgeCircle
user/leetcode/657.机器人能否返回原点.cpp:10
Method
kClosest
user/leetcode/973.最接近原点的-k-个点.cpp:17
Method
kSmallestPairs
user/leetcode/373.查找和最小的k对数字.cpp:26
Method
knightDialer
user/leetcode/935.骑士拨号器.cpp:10
Method
kthSmallest
user/leetcode/378.有序矩阵中第-k-小的元素.cpp:10
Method
kthSmallest
user/leetcode/1439.有序矩阵中的第-k-个最小数组和.cpp:10
Method
kthSmallest
user/leetcode/230.二叉搜索树中第k小的元素.cpp:21
Method
kthSmallestPrimeFraction
user/leetcode/786.第-k-个最小的素数分数.cpp:10
Method
largestNumber
user/leetcode/1449.数位成本和为目标值的最大数字.cpp:10
Method
largestRectangleArea
user/leetcode/84.柱状图中最大的矩形.cpp:10
Method
lastStoneWeight
user/leetcode/1046.最后一块石头的重量.cpp:12
Method
lastSubstring
user/leetcode/1163.按字典序排在最后的子串.cpp:10
Method
leastInterval
user/leetcode/621.任务调度器.cpp:10
Method
leave
user/leetcode/855.考场就座.cpp:46
Method
leftRotate
templates/red-black-tree.cpp:86
Method
leftRotate
templates/rb.cpp:105
Method
lemonadeChange
(self, bills: List[int])
user/leetcode/860.柠檬水找零.py:9
Method
lengthOfLastWord
user/leetcode/58.最后一个单词的长度.cpp:10
Method
lengthOfLongestSubstring
user/leetcode/3.无重复字符的最长子串.cpp:19
Method
letterCombinations
user/leetcode/17.电话号码的字母组合.cpp:10
Method
levelOrder
user/leetcode/429.n-叉树的层序遍历.cpp:30
Method
levelOrder
user/leetcode/102.二叉树的层序遍历.cpp:25
Method
longestAwesome
user/leetcode/1542.找出最长的超赞子字符串.cpp:10
Method
longestCommonPrefix
user/leetcode/14.最长公共前缀.cpp:10
Method
longestPalindrome
user/leetcode/5.最长回文子串.cpp:10
Method
longestPrefix
user/leetcode/1392.最长快乐前缀.cpp:10
Method
longestSubstring
user/leetcode/395.至少有-k-个重复字符的最长子串.cpp:10
Method
longestValidParentheses
user/leetcode/32.最长有效括号.cpp:10
Method
longestWPI
user/leetcode/1124.表现良好的最长时间段.cpp:10
Method
longestWord
user/leetcode/720.词典中最长的单词.cpp:60
Method
longestZigZag
user/leetcode/1372.二叉树中的最长交错路径.cpp:19
Method
lowbit
user/leetcode/307.区域和检索-数组可修改.cpp:18
Method
lowestCommonAncestor
user/leetcode/235.二叉搜索树的最近公共祖先.cpp:20
Method
lowestCommonAncestor
user/leetcode/236.二叉树的最近公共祖先.cpp:19
Function
main
user/codeforces/750A.New Year and Hurry.cpp:6
Function
main
user/codeforces/1605A.A.M. Deviation.cpp:4
Function
main
user/codeforces/1157B.Long Number.cpp:6
Function
main
user/codeforces/1607C.Minimum Extraction.cpp:7
Function
main
user/codeforces/1607E.Robot on the Board 1.cpp:8
Function
main
user/codeforces/802M.April Fools' Problem (easy).cpp:8
Function
main
user/codeforces/4A.Watermelon.cpp:4
Function
main
user/codeforces/7C.Line.cpp:22
Function
main
user/codeforces/1A.Theatre Square.cpp:6
Function
main
user/codeforces/409D.Big Data.cpp:6
Function
main
user/codeforces/855A.Tom Riddle's Diary.cpp:8
Function
main
user/codeforces/409H.A + B Strikes Back.cpp:4
Function
main
user/codeforces/1607D.Blue-Red Permutation.cpp:13
Function
main
user/codeforces/6A.Triangle.cpp:6
Function
main
user/codeforces/5A.Chat Server's Outgoing Traffic.cpp:7
Function
main
user/codeforces/171E.MYSTERIOUS LANGUAGE.cpp:6
Function
main
user/codeforces/884A.Book Reading.cpp:6
Function
main
user/codeforces/785A.Anton and Polyhedrons.cpp:9
Function
main
user/codeforces/1607B.Odd Grasshopper.cpp:7
Function
main
user/codeforces/1607A.Linear Keyboard.cpp:7
Function
main
user/codeforces/10A.Power Consumption Calculation.cpp:7
Function
main
user/codeforces/71A.Way Too Long Words.cpp:3
Function
main
user/codeforces/784E.Twisted Circuit.cpp:6
Function
main
templates/binary-index-tree.cpp:94
Function
main
templates/red-black-tree.cpp:386
Function
main
templates/rb.cpp:452
Function
main
templates/quicksort.cpp:44
← previous
next →
601–700 of 957, ranked by callers