Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/course-dasheng/fe-algorithm
/ functions
Functions
267 in github.com/course-dasheng/fe-algorithm
⨍
Functions
267
◇
Types & classes
10
Function
binaryTreePaths
(root)
tree/257.二叉树的所有路径.js:20
Function
bubbleSort
(arr)
sort/sort.js:8
Function
canConstruct
(ransomNote, magazine)
other/383.赎金信.js:13
Function
canJump
(nums)
greedy/55.跳跃游戏.js:13
Function
canWinNim
(n)
other/292.nim-游戏.js:12
Function
change
(amount, coins)
dynamic/518.零钱兑换-ii.js:13
Function
clean
()
interview/limit-promise.js:12
Function
climbStairs
(n)
dynamic/70.爬楼梯.js:12
Function
coinChange
(coins, amount)
dynamic/322.零钱兑换.js:13
Function
combinationSum
(candidates, target)
recursion/39.组合总和.js:13
Function
combine
(n, k)
recursion/77.组合.js:13
Function
compareVersion
(version1, version2)
interview/165.compare-version.js:7
Function
connect
(root)
tree/116.填充每个节点的下一个右侧节点指针.js:25
Function
connect
(root)
tree/117.填充每个节点的下一个右侧节点指针-ii.js:22
Function
constructMaximumBinaryTree
(nums)
tree/654.最大二叉树.js:21
Method
constructor
(compare)
interview/295.数据流的中位数.js:10
Method
constructor
(compare)
interview/502.ipo.js:17
Method
constructor
(compare)
interview/347.前-k-个高频元素.js:15
Method
constructor
(compare)
interview/heap.js:4
Method
constructor
(compare)
interview/215.数组中的第k个最大元素.js:14
Function
containsDuplicate
(nums)
interview/217.存在重复元素.js:12
Function
countNodes
(root)
tree/222.完全二叉树的节点个数.js:20
Function
dailyTemperatures
(temperatures)
interview/739.每日温度.js:12
Function
detectCycle
(head)
linklist/142.环形链表-ii.js:20
Function
diameterOfBinaryTree
(root)
tree/543.二叉树的直径.js:20
Function
eraseOverlapIntervals
(intervals)
greedy/435.无重叠区间.js:12
Function
evalRPN
(tokens)
stack/150.逆波兰表达式求值.js:12
Function
exist
(board, word)
recursion/79.单词搜索.js:21
Function
fib
(n)
dynamic/509.斐波那契数.js:24
Function
findBottomLeftValue
(root)
interview/剑指offer045.剑指 Offer II 045. 二叉树最底层最左边的值.js:29
Function
findBottomLeftValue1
(root)
interview/剑指offer045.剑指 Offer II 045. 二叉树最底层最左边的值.js:14
Function
findContentChildren
(g, s)
greedy/455.分发饼干.js:13
Function
findKthLargest
(nums, k)
interview/215.数组中的第k个最大元素.js:74
Function
findLengthOfLCIS
(nums)
dynamic/674.最长连续递增序列.js:12
Function
findMaximizedCapital
(k, w, profits, capital)
interview/502.ipo.js:78
Function
findMin
(nums)
binary/153.寻找旋转排序数组中的最小值.js:12
Function
findMinArrowShots
(points)
greedy/452.用最少数量的箭引爆气球.js:12
Function
flatArray
(arr)
interview/341.扁平化嵌套列表迭代器.js:71
Function
flatten
(root)
tree/114.二叉树展开为链表.js:20
Function
fourSum
(nums, target)
interview/18.四数之和.js:13
Function
getIntersectionNode
(headA, headB)
linklist/160.相交链表.js:21
Function
hasCycle
(head)
linklist/141.环形链表.js:13
Function
hasPathSum
(root, targetSum)
tree/112.路径总和.js:21
Function
helper
(memo,n)
dynamic/509.斐波那契数.js:14
Function
inorderTraversal
(root)
tree/94.二叉树的中序遍历.js:20
Function
insertIntoBST
(root, val)
tree/701.二叉搜索树中的插入操作.js:21
Function
intersection
(nums1, nums2)
array/349.两个数组的交集.js:13
Function
invertTree
(root)
tree/226.翻转二叉树.js:13
Function
isAnagram
(s, t)
other/242.有效的字母异位词.js:13
Function
isBalanced
(root)
tree/110.平衡二叉树.js:21
Function
isHappy
(n)
other/202.快乐数.js:22
Function
isHappy1
(n)
other/202.快乐数.js:37
Function
isPalindrome
(s)
array/125.验证回文串.js:12
Function
isPalindrome
(head)
linklist/234.回文链表.js:19
Function
isPowerOfThree
(n)
other/326.3-的幂.js:12
Function
isSameTree1
(p,q)
tree/100.相同的树.js:54
Function
isSubsequence
(s, t)
dynamic/392.判断子序列.js:14
Function
isSubsequence1
(s, t)
dynamic/392.判断子序列.js:23
Function
isSubtree
(root, subRoot)
tree/572.另一棵树的子树.js:23
Function
isSymmetric
(root)
tree/101.对称二叉树.js:20
Function
isValid
(s)
stack/20.有效的括号.js:13
Function
isValidBST
(root)
tree/98.验证二叉搜索树.js:21
Function
jump
(nums)
greedy/45.跳跃游戏-ii.js:12
Function
kthSmallest
(root, k)
tree/230.二叉搜索树中第k小的元素.js:21
Function
largestValues
(root)
tree/515.在每个树行中找最大值.js:20
Function
leastInterval
(tasks, n)
greedy/621.任务调度器.js:13
Method
left
(k)
interview/295.数据流的中位数.js:56
Method
left
(k)
interview/502.ipo.js:63
Method
left
(k)
interview/347.前-k-个高频元素.js:61
Method
left
(k)
interview/heap.js:50
Method
left
(k)
interview/215.数组中的第k个最大元素.js:60
Function
lemonadeChange
(bills)
greedy/860.柠檬水找零.js:18
Function
lengthOfLIS
(nums)
greedy/300.最长递增子序列.js:12
Function
letterCombinations
(digits)
recursion/17.电话号码的字母组合.js:13
Function
levelOrder
(root)
tree/429.n-叉树的层序遍历.js:21
Function
levelOrder
(root)
tree/102.二叉树的层序遍历.js:25
Function
levelOrderBottom
(root)
tree/107.二叉树的层序遍历-ii.js:20
Function
longestCommonSubsequence
(text1, text2)
dynamic/1143.最长公共子序列.js:17
Function
lowestCommonAncestor
(root, p, q)
tree/236.二叉树的最近公共祖先.js:21
Function
maxDepth
(root)
tree/104.二叉树的最大深度.js:13
Function
maxProfit
(prices)
dynamic/122.买卖股票的最佳时机-ii.js:13
Function
maxProfit
(prices)
dynamic/121.买卖股票的最佳时机.js:12
Function
maxProfit
(prices, fee)
dynamic/714.买卖股票的最佳时机含手续费.js:14
Function
maxProfit
(prices)
dynamic/123.买卖股票的最佳时机-iii.js:12
Function
maxProfit1
(prices)
dynamic/122.买卖股票的最佳时机-ii.js:27
Function
maxProfit1
(prices, fee)
dynamic/714.买卖股票的最佳时机含手续费.js:25
Function
maxSubArray
(nums)
dynamic/53.最大子数组和.js:13
Function
maxSubArray1
(nums)
dynamic/53.最大子数组和.js:24
Function
mergeKLists
(lists)
interview/23.合并k个升序链表.js:43
Function
mergeKLists1
(lists)
interview/23.合并k个升序链表.js:19
Function
mergeTrees
(root1, root2)
tree/617.合并二叉树.js:21
Function
mergeTwoLists
(list1, list2)
linklist/21.合并两个有序链表.js:20
Function
middleNode
(head)
linklist/876.链表的中间结点.js:19
Function
minCostClimbingStairs
(cost)
dynamic/746.使用最小花费爬楼梯.js:14
Function
minDepth
(root)
tree/111.二叉树的最小深度.js:35
Function
minDistance
(word1, word2)
dynamic/72.编辑距离.js:13
Function
minDistance
(word1, word2)
dynamic/583.两个字符串的删除操作.js:13
Function
minSubArrayLen
(target, nums)
array/209.长度最小的子数组.js:13
Function
moveZeroes
(nums)
array/283.移动零.js:12
Function
mySqrt
(x)
binary/69.x-的平方根.js:12
← previous
next →
101–200 of 267, ranked by callers