Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/algorithm004-01/algorithm004-01
/ functions
Functions
6,280 in github.com/algorithm004-01/algorithm004-01
⨍
Functions
6,280
◇
Types & classes
2,806
Method
LongestValidParentheses1
(string s)
Week 05/id_546/LeetCode_32_546.cs:14
Method
LowestCommonAncestor
(TreeNode root, TreeNode p, TreeNode q)
Week 02/id_701/leetcode_236_701.cs:10
Method
LowestCommonAncestor
(TreeNode root, TreeNode p, TreeNode q)
Week 02/id_546/LeetCode_236_546.cs:15
Method
LowestCommonAncestor
(TreeNode root, TreeNode p, TreeNode q)
Week 02/id_171/LowestCommonAncestorOfABinaryTreeSol.cs:13
Method
LruCache
(int capacity)
Week 07/id_306/LruCache.java:17
Method
MajorityElement
(int[] nums)
Week 02/id_701/leetcode_169_701.cs:3
Method
MajorityElement1
<summary> 方法一:暴力法,键值对 </summary> <param name="nums"></param> <returns></returns>
Week 02/id_546/LeetCode_169_546.cs:19
Method
Map
<summary> 使用字典,字典key为数组中的元素,value为该元素在字典中的索引。 在遍历数组的时候,去字典中看是否有一个key,它的值正好是target - nums[i], 如果存在,则正好是num[i] + key = target,此时就找到了两个和是target的数,返回它们的索引
Week 02/id_171/TwoSumSol.cs:26
Method
Map
<summary> 使用字典,字典的key是当前节点,value是当前节点的父节点。 在对二叉树进行遍历的时候,将当前节点和当前节点父节点装进字典中。 遍历完二叉树之后,将p和p的所有祖先节点都装进一个hashset中。 再处理q以及q的祖先节点,只要q或者q的祖先节点中有一个节点在上面的hashs
Week 02/id_171/LowestCommonAncestorOfABinaryTreeSol.cs:36
Method
MaxProfit
(int[] prices)
Week 03/id_546/LeetCode_122_546.cs:14
Method
MaxProfit
(int[] prices)
Week 03/id_171/BestTimeToBuyAndSellStockIISol.cs:10
Method
MaximalSquare1
(char[][] matrix)
Week 05/id_546/LeetCode_221_546.cs:14
Function
Merge
** 合并两个有序数组 双指针从尾部开始处理数据 */
Week 01/id_301/main.go:137
Method
Merge
(int[] nums1, int m, int[] nums2, int n)
Week 01/id_171/MergeSortedArraySol.cs:12
Method
MergeOne
(int[] nums1, in int m, int[] nums2, int n)
Week 01/id_171/MergeSortedArraySol.cs:60
Method
MergeTwo
(int[] nums1, in int m, int[] nums2, int n)
Week 01/id_171/MergeSortedArraySol.cs:39
Method
MergeTwoListTwo
<summary> 递归 </summary> <param name="l1"></param> <param name="l2"></param> <returns></returns>
Week 01/id_171/MergeTwoSortedListsSol.cs:24
Method
MergeTwoLists
(ListNode l1, ListNode l2)
Week 01/id_701/leetcode_21_701.cs:11
Method
MergeTwoLists
(ListNode l1, ListNode l2)
Week 01/id_171/MergeTwoSortedListsSol.cs:12
Method
MergeTwoListsOne
<summary> 迭代 </summary> <param name="l1"></param> <param name="l2"></param> <returns></returns>
Week 01/id_171/MergeTwoSortedListsSol.cs:52
Method
MinDistance
(string word1, string word2)
Week 05/id_546/LeetCode_72_546.cs:14
Method
MinPathSum
(int[][] grid)
Week 05/id_546/LeetCode_64_546.cs:14
Method
MinPathSum
<summary> 动态规划。 定义状态f(i,j)是到出口的最小路径。 dp方程:dp(i, j) = a[i][j] + min(dp(i + 1, j), dp(i, j + 1)) </summary> <param name="grid"></param> <returns></retur
Week 05/id_171/MinimumPathSumSol.cs:19
Method
MinPathSum2
(int[][] grid)
Week 05/id_546/LeetCode_64_546.cs:34
Method
MinPathSum3
(int[][] grid)
Week 05/id_546/LeetCode_64_546.cs:60
Function
MinPathSumBrust
暴力
Week 05/id_531/leetCode_64_531.go:4
Method
MinStack
initialize your data structure here.
Week 01/id_431/LeetCode_115_431.java:11
Method
MinStack
initialize your data structure here.
Week 01/id_371/Leetcode_155_371.java:24
Method
MoveZeroes
(int[] nums)
Week 01/id_701/leetcode_283_701.cs:3
Method
MoveZeroes
(int[] nums)
Week 01/id_171/MoveZeroesSol.cs:10
Function
MyCircularDeque
(k)
Week 01/id_401/641.design-circular-deque.js:5
Method
MyCircularDeque
Week 01/id_166/MyCircularDeque.hpp:3
Method
MyCircularDeque
Initialize your data structure here. Set the size of the deque to be k.
Week 01/id_431/LeetCode_641_431.java:14
Method
MyCircularDeque
Initialize your data structure here. Set the size of the deque to be k.
Week 01/id_686/LeetCode_641_686.java:51
Method
MyCircularDeque
Initialize your data structure here. Set the size of the deque to be k.
Week 01/id_556/LeetCode_641_556.java:12
Method
MyCircularDeque
Initialize your data structure here. Set the size of the deque to be k.
Week 01/id_596/LeetCode_641_596.java:8
Method
MyCircularDeque
Initialize your data structure here. Set the size of the deque to be k.
Week 01/id_476/LeetCode_641_476.java:60
Method
MyCircularDeque
Initialize your data structure here. Set the size of the deque to be k.
Week 01/id_371/LeetCode_641_371.java:21
Method
MyCircularDeque
Initialize your data structure here. Set the size of the deque to be k.
Week 01/id_416/LeetCode_641_416.java:51
Method
MyCircularDeque
Initialize your data structure here. Set the size of the deque to be k.
Week 01/id_006/LeetCode_641_006.java:16
Method
MyCircularDeque
(int k)
Week 01/id_241/LeetCode_641_241.java:9
Method
MyCircularDeque
Week 01/id_651/LeetCode_641_651.cpp:26
Method
MyCircularDeque
Initialize your data structure here. Set the size of the deque to be k. */
Week 01/id_586/641-design-circular-deque.cc:10
Method
MyCircularDeque
Initialize your data structure here. Set the size of the deque to be k.
Week 01/id_766/LeetCode_641_766.java:16
Method
MyCircularDeque
Initialize your data structure here. Set the size of the deque to be k. */
Week 01/id_151/LeetCode_641_151.cpp:4
Method
MyCircularDeque
(int k)
Week 01/id_421/LeetCode_641_421.java:9
Method
MyCircularDeque
Initialize your data structure here. Set the size of the deque to be k.
Week 01/id_541/P641DesignCircularDeque.java:67
Method
MyCircularDeque
Initialize your data structure here. Set the size of the deque to be k. */
Week 01/id_701/leetcode_641_701.cs:14
Method
MyCircularDeque
Initialize your data structure here. Set the size of the deque to be k.
Week 01/id_751/LeetCode_641_751.java:40
Method
MyCircularDeque
Initialize your data structure here. Set the size of the deque to be k.
Week 01/id_296/LeetCode_641_296.java:17
Method
MyCircularDeque
Initialize your data structure here. Set the size of the deque to be k.
Week 01/id_041/MyCircularDeque.java:9
Method
MyCircularDeque
Initialize your data structure here. Set the size of the deque to be k.
Week 02/id_021/algorithm/src/main/java/com/lqw/algorithm/array/queue/MyCircularDeque.java:36
Method
MyCircularDeque2
(int k)
Week 01/id_241/LeetCode_641_241.java:83
Method
MyCircularDeque2
(int k)
Week 01/id_421/LeetCode_641_421.java:83
Method
MyCircularDeque3
(int k)
Week 01/id_241/LeetCode_641_241.java:168
Method
MyCircularDeque3
(int k)
Week 01/id_421/LeetCode_641_421.java:168
Method
MyHashMap
()
Week 02/id_416/MyHashMap.java:22
Function
NewLinkedStack
()
Week 02/id_716/stack.go:15
Method
Node
(int[][] B, int zr, int zc, int d)
Week 06/id_516/Leetcode_773_516.java:79
Method
Node
Week 06/id_616/LeetCode_1091_616.cpp:30
Method
Node
(int distance, int operation)
Week 05/id_556/LeetCode_72_556.java:66
Method
Node
(int k, int v)
Week 07/id_306/Node.java:9
Method
Node
(int k, int v)
Week 07/id_321/LeetCode_146_321.java:59
Method
Node
(int key, int value)
Week 07/id_371/Leetcode_146_371.java:24
Method
Node
(int key, int val)
Week 07/id_466/LeetCode_146_466.java:156
Method
Node
(int key, int value)
Week 07/id_006/LeetCode_146_006.java:20
Method
Node
(String s, int left, int right)
Week 03/id_716/LeetCode_22_716.java:58
Method
Node
(int val)
Week 01/id_431/LeetCode_115_431.java:51
Method
Node
(int value)
Week 01/id_431/LeetCode_641_431.java:94
Method
Node
(int value)
Week 01/id_241/LeetCode_641_241.java:154
Method
Node
(int value)
Week 01/id_421/LeetCode_641_421.java:154
Method
Node
()
Week 02/id_431/LeetCode_589_431.java:32
Method
Node
()
Week 02/id_431/LeetCode_590_431.java:33
Method
Node
()
Week 02/id_431/LeetCode_429_431.java:42
Method
Node
()
Week 02/id_476/LeetCode_589_476.java:14
Method
Node
()
Week 02/id_476/LeetCode_590_476.java:14
Method
Node
()
Week 02/id_606/590.n叉树的后序遍历.java:43
Method
Node
()
Week 02/id_371/Leetcode_589_371.java:18
Method
Node
()
Week 02/id_371/Leetcode_429_371.java:19
Method
Node
(int val)
Week 02/id_371/Leetcode_590_371.java:18
Method
Node
()
Week 02/id_716/LeetCode_589_716.java:56
Method
Node
()
Week 02/id_716/LeetCode_429_716.java:65
Method
Node
()
Week 02/id_716/LeetCode_590_716.java:113
Method
Node
()
Week 02/id_416/Node.java:9
Method
Node
()
Week 02/id_466/LeetCode_590_466.java:74
Method
Node
()
Week 02/id_466/LeetCode_589_466.java:74
Method
Node
()
Week 02/id_466/LeetCode_429_466.java:93
Method
Node
()
Week 02/id_241/LeetCode_590_241.java:68
Method
Node
()
Week 02/id_241/LeetCode_429_241.java:32
Method
Node
()
Week 02/id_241/LeetCode_589_241.java:46
Method
Node
()
Week 02/id_691/LeetCode_590_691.java:4
Method
Node
()
Week 02/id_541/LeetCode_590_541.java:37
Method
Node
()
Week 02/id_141/LeetCode_590_141.java:43
Method
Node
()
Week 02/id_141/LeetCode_589_141.java:43
Method
Node
()
Week 02/id_546/LeetCode_590_546.cs:17
Method
Node
()
Week 02/id_346/LevelOrder_429.java:44
Method
NumDecodings
(string s)
Week 05/id_546/LeetCode_91_546.cs:14
Method
NumDecodings
(string s)
Week 05/id_171/DecodeWaysSol.cs:10
Method
NumIslands
(char[][] grid)
Week 06/id_701/leetcode_200_701.cs:3
Method
NumIslands
(char[][] grid)
Week 03/id_701/LeetCode_200_701.cs:3
← previous
next →
2,001–2,100 of 6,280, ranked by callers