MCPcopy Create free account

hub / github.com/course-dasheng/fe-algorithm / functions

Functions267 in github.com/course-dasheng/fe-algorithm

FunctionbinaryTreePaths
(root)
tree/257.二叉树的所有路径.js:20
FunctionbubbleSort
(arr)
sort/sort.js:8
FunctioncanConstruct
(ransomNote, magazine)
other/383.赎金信.js:13
FunctioncanJump
(nums)
greedy/55.跳跃游戏.js:13
FunctioncanWinNim
(n)
other/292.nim-游戏.js:12
Functionchange
(amount, coins)
dynamic/518.零钱兑换-ii.js:13
Functionclean
()
interview/limit-promise.js:12
FunctionclimbStairs
(n)
dynamic/70.爬楼梯.js:12
FunctioncoinChange
(coins, amount)
dynamic/322.零钱兑换.js:13
FunctioncombinationSum
(candidates, target)
recursion/39.组合总和.js:13
Functioncombine
(n, k)
recursion/77.组合.js:13
FunctioncompareVersion
(version1, version2)
interview/165.compare-version.js:7
Functionconnect
(root)
tree/116.填充每个节点的下一个右侧节点指针.js:25
Functionconnect
(root)
tree/117.填充每个节点的下一个右侧节点指针-ii.js:22
FunctionconstructMaximumBinaryTree
(nums)
tree/654.最大二叉树.js:21
Methodconstructor
(compare)
interview/295.数据流的中位数.js:10
Methodconstructor
(compare)
interview/502.ipo.js:17
Methodconstructor
(compare)
interview/347.前-k-个高频元素.js:15
Methodconstructor
(compare)
interview/heap.js:4
Methodconstructor
(compare)
interview/215.数组中的第k个最大元素.js:14
FunctioncontainsDuplicate
(nums)
interview/217.存在重复元素.js:12
FunctioncountNodes
(root)
tree/222.完全二叉树的节点个数.js:20
FunctiondailyTemperatures
(temperatures)
interview/739.每日温度.js:12
FunctiondetectCycle
(head)
linklist/142.环形链表-ii.js:20
FunctiondiameterOfBinaryTree
(root)
tree/543.二叉树的直径.js:20
FunctioneraseOverlapIntervals
(intervals)
greedy/435.无重叠区间.js:12
FunctionevalRPN
(tokens)
stack/150.逆波兰表达式求值.js:12
Functionexist
(board, word)
recursion/79.单词搜索.js:21
Functionfib
(n)
dynamic/509.斐波那契数.js:24
FunctionfindBottomLeftValue
(root)
interview/剑指offer045.剑指 Offer II 045. 二叉树最底层最左边的值.js:29
FunctionfindBottomLeftValue1
(root)
interview/剑指offer045.剑指 Offer II 045. 二叉树最底层最左边的值.js:14
FunctionfindContentChildren
(g, s)
greedy/455.分发饼干.js:13
FunctionfindKthLargest
(nums, k)
interview/215.数组中的第k个最大元素.js:74
FunctionfindLengthOfLCIS
(nums)
dynamic/674.最长连续递增序列.js:12
FunctionfindMaximizedCapital
(k, w, profits, capital)
interview/502.ipo.js:78
FunctionfindMin
(nums)
binary/153.寻找旋转排序数组中的最小值.js:12
FunctionfindMinArrowShots
(points)
greedy/452.用最少数量的箭引爆气球.js:12
FunctionflatArray
(arr)
interview/341.扁平化嵌套列表迭代器.js:71
Functionflatten
(root)
tree/114.二叉树展开为链表.js:20
FunctionfourSum
(nums, target)
interview/18.四数之和.js:13
FunctiongetIntersectionNode
(headA, headB)
linklist/160.相交链表.js:21
FunctionhasCycle
(head)
linklist/141.环形链表.js:13
FunctionhasPathSum
(root, targetSum)
tree/112.路径总和.js:21
Functionhelper
(memo,n)
dynamic/509.斐波那契数.js:14
FunctioninorderTraversal
(root)
tree/94.二叉树的中序遍历.js:20
FunctioninsertIntoBST
(root, val)
tree/701.二叉搜索树中的插入操作.js:21
Functionintersection
(nums1, nums2)
array/349.两个数组的交集.js:13
FunctioninvertTree
(root)
tree/226.翻转二叉树.js:13
FunctionisAnagram
(s, t)
other/242.有效的字母异位词.js:13
FunctionisBalanced
(root)
tree/110.平衡二叉树.js:21
FunctionisHappy
(n)
other/202.快乐数.js:22
FunctionisHappy1
(n)
other/202.快乐数.js:37
FunctionisPalindrome
(s)
array/125.验证回文串.js:12
FunctionisPalindrome
(head)
linklist/234.回文链表.js:19
FunctionisPowerOfThree
(n)
other/326.3-的幂.js:12
FunctionisSameTree1
(p,q)
tree/100.相同的树.js:54
FunctionisSubsequence
(s, t)
dynamic/392.判断子序列.js:14
FunctionisSubsequence1
(s, t)
dynamic/392.判断子序列.js:23
FunctionisSubtree
(root, subRoot)
tree/572.另一棵树的子树.js:23
FunctionisSymmetric
(root)
tree/101.对称二叉树.js:20
FunctionisValid
(s)
stack/20.有效的括号.js:13
FunctionisValidBST
(root)
tree/98.验证二叉搜索树.js:21
Functionjump
(nums)
greedy/45.跳跃游戏-ii.js:12
FunctionkthSmallest
(root, k)
tree/230.二叉搜索树中第k小的元素.js:21
FunctionlargestValues
(root)
tree/515.在每个树行中找最大值.js:20
FunctionleastInterval
(tasks, n)
greedy/621.任务调度器.js:13
Methodleft
(k)
interview/295.数据流的中位数.js:56
Methodleft
(k)
interview/502.ipo.js:63
Methodleft
(k)
interview/347.前-k-个高频元素.js:61
Methodleft
(k)
interview/heap.js:50
Methodleft
(k)
interview/215.数组中的第k个最大元素.js:60
FunctionlemonadeChange
(bills)
greedy/860.柠檬水找零.js:18
FunctionlengthOfLIS
(nums)
greedy/300.最长递增子序列.js:12
FunctionletterCombinations
(digits)
recursion/17.电话号码的字母组合.js:13
FunctionlevelOrder
(root)
tree/429.n-叉树的层序遍历.js:21
FunctionlevelOrder
(root)
tree/102.二叉树的层序遍历.js:25
FunctionlevelOrderBottom
(root)
tree/107.二叉树的层序遍历-ii.js:20
FunctionlongestCommonSubsequence
(text1, text2)
dynamic/1143.最长公共子序列.js:17
FunctionlowestCommonAncestor
(root, p, q)
tree/236.二叉树的最近公共祖先.js:21
FunctionmaxDepth
(root)
tree/104.二叉树的最大深度.js:13
FunctionmaxProfit
(prices)
dynamic/122.买卖股票的最佳时机-ii.js:13
FunctionmaxProfit
(prices)
dynamic/121.买卖股票的最佳时机.js:12
FunctionmaxProfit
(prices, fee)
dynamic/714.买卖股票的最佳时机含手续费.js:14
FunctionmaxProfit
(prices)
dynamic/123.买卖股票的最佳时机-iii.js:12
FunctionmaxProfit1
(prices)
dynamic/122.买卖股票的最佳时机-ii.js:27
FunctionmaxProfit1
(prices, fee)
dynamic/714.买卖股票的最佳时机含手续费.js:25
FunctionmaxSubArray
(nums)
dynamic/53.最大子数组和.js:13
FunctionmaxSubArray1
(nums)
dynamic/53.最大子数组和.js:24
FunctionmergeKLists
(lists)
interview/23.合并k个升序链表.js:43
FunctionmergeKLists1
(lists)
interview/23.合并k个升序链表.js:19
FunctionmergeTrees
(root1, root2)
tree/617.合并二叉树.js:21
FunctionmergeTwoLists
(list1, list2)
linklist/21.合并两个有序链表.js:20
FunctionmiddleNode
(head)
linklist/876.链表的中间结点.js:19
FunctionminCostClimbingStairs
(cost)
dynamic/746.使用最小花费爬楼梯.js:14
FunctionminDepth
(root)
tree/111.二叉树的最小深度.js:35
FunctionminDistance
(word1, word2)
dynamic/72.编辑距离.js:13
FunctionminDistance
(word1, word2)
dynamic/583.两个字符串的删除操作.js:13
FunctionminSubArrayLen
(target, nums)
array/209.长度最小的子数组.js:13
FunctionmoveZeroes
(nums)
array/283.移动零.js:12
FunctionmySqrt
(x)
binary/69.x-的平方根.js:12
← previousnext →101–200 of 267, ranked by callers