MCPcopy Create free account

hub / github.com/algorithm004-01/algorithm004-01 / functions

Functions6,280 in github.com/algorithm004-01/algorithm004-01

↓ 1 callersMethodunion
(self, x, y, parent, rank)
Week 06/id_246/LeetCode_547_246.py:55
↓ 1 callersMethodunion
(int parent[], int x, int y)
Week 06/id_026/LeetCode_547_026.java:8
↓ 1 callersMethodunion
(int i, int j)
Week 06/id_006/LeetCode_200_006.java:38
↓ 1 callersMethodunion
(int i, int j)
Week 06/id_006/LeetCode_547_006.java:23
↓ 1 callersMethodunion
(int p, int q)
Week 06/id_241/LeetCode_547_241.java:40
↓ 1 callersMethodunion
(int x, int y)
Week 06/id_386/LeetCode_547_386.java:26
↓ 1 callersMethodunion
(int p, int q)
Week 06/id_491/LeetCode_547_491.java:42
↓ 1 callersMethodunion
(int parent[], int x, int y)
Week 06/id_506/LeetCode_547_506.java:8
↓ 1 callersMethodunion
(int[] parent, int i, int j)
Week 06/id_471/LeetCode_547_471.java:10
↓ 1 callersMethodunionSet
(int p, int q)
Week 06/id_431/LeetCode_200_431.java:100
↓ 1 callersFunctionuniquePaths
(m, n)
Week 05/id_571/leetcode_69_571.js:6
↓ 1 callersFunctionuniquePaths
(m, n)
Week 05/id_441/unique-paths.js:5
↓ 1 callersMethoduniquePaths
(int m, int n, int[][] memo)
Week 05/id_716/LeetCode_62_716.java:16
↓ 1 callersMethoduniquePaths
Week 05/id_536/leetcode_62_536.cpp:57
↓ 1 callersMethoduniquePaths
(int m, int n)
Week 05/id_081/UniquePaths.java:10
↓ 1 callersMethoduniquePaths
(self, m: int, n: int)
Week 05/id_636/LeetCode_62_636.py:2
↓ 1 callersMethoduniquePathsWithObstacles
(self, obstacleGrid)
Week 05/id_636/LeetCode_63_636.py:3
↓ 1 callersMethoduniquePaths_2
(int m, int n)
Week 05/id_081/UniquePaths.java:23
↓ 1 callersMethodupdateBoard
:type board: List[List[str]] :type click: List[int] :rtype: List[List[str]]
Week 03/id_101/[529]Minesweeper.py:82
↓ 1 callersMethodupdateBoard
思路:广度优先搜索 要点:当周围没有炸弹,则遍历周围节点;否则获取周围炸点节点,标记为数字 @param board @param click @return
Week 03/id_006/LeetCode_529_006.java:46
↓ 1 callersMethodupdateBoard
(char[][] board, int[] click)
Week 03/id_611/LeetCode_529_611.java:14
↓ 1 callersMethodupdateBoardHelper
(char[][] board, int x, int y)
Week 03/id_241/LeetCode_529_241.java:17
↓ 1 callersMethodvalid
(char[] chars, int i, int j, boolean remove)
Week 08/id_466/LeetCode_680_466.java:60
↓ 1 callersMethodvalidBSTHelper
(TreeNode node, TreeNode low, TreeNode high)
Week 02/id_716/LeetCode_98_716.java:41
↓ 1 callersMethodvalidate
(int x, int y, int n, int[] visitedCol, int[] visitedUphill, int[] visitedDownhi
Week 06/id_131/LeetCode_51_131.java:52
↓ 1 callersMethodvalidate
(char[][] board, int x, int y)
Week 02/id_286/LeetCode_51_286.java:46
↓ 1 callersMethodvalidateCoordinate
(int row, int col, int rows, int cols)
Week 06/id_006/LeetCode_200_006.java:93
↓ 1 callersMethodvalidateCoordinate
(char[][] board, int row, int rows, int col, int cols)
Week 06/id_006/LeetCode_212_006.java:139
↓ 1 callersMethodzero
(int i, int j)
Week 03/id_711/Leetcode_200_711.java:42
↓ 1 callersMethodzeroGrid
(int i, int j, char[][] grid)
Week 03/id_371/Leetcode_200_371.java:36
FunctionBFS
(graph, start, end)
Week 03/id_111/leetcode_127_111.py:15
MethodBigHeap
(int capacity)
Week 02/id_021/algorithm/src/main/java/com/lqw/algorithm/binaryheap/BigHeap.java:25
MethodBinaryIndexedTree
(int n)
Week 07/id_466/LeetCode_493_466.java:129
MethodBuildTree
<summary> 方法一:递归 </summary> <param name="preorder"></param> <param name="inorder"></param> <returns></returns>
Week 02/id_546/LeetCode_105_546.cs:21
MethodCanJump
(int[] nums)
Week 03/id_546/LeetCode_55_546.cs:14
MethodCell
(int x, int y)
Week 06/id_131/LeetCode_1091_131_3.java:85
MethodCell
(int x, int y)
Week 06/id_131/LeetCode_1091_131_1.java:61
MethodCell
(int x, int y)
Week 06/id_131/LeetCode_1091_131_2.java:67
MethodColorNode
(TreeNode node,String color)
Week 02/id_556/LeetCode_94_556.java:30
MethodCombine
(int n, int k)
Week 02/id_546/LeetCode_77_546.cs:14
MethodCombine
(int n, int k)
Week 02/id_171/CombinationsSol.cs:12
MethodCombineTwo
<summary> </summary> <param name="n"></param> <param name="k"></param> <returns></returns>
Week 02/id_171/CombinationsSol.cs:26
MethodCommand
(CommandCode code, TreeNode node)
Week 02/id_466/LeetCode_145_466.java:163
MethodCommand
(CommandCode code, TreeNode node)
Week 02/id_466/LeetCode_144_466.java:162
MethodCommand
(CommandCode code, TreeNode node)
Week 02/id_466/LeetCode_94_466.java:157
FunctionConstructor
()
Week 06/id_011/implement-trie-prefix-tree.go:9
FunctionConstructor
()
Week 06/id_301/LeetCode_208_301.go:16
FunctionConstructor
** Initialize your data structure here. */
Week 06/id_631/LeetCode_208_631.go:12
FunctionConstructor
** Initialize your data structure here. */
Week 06/id_071/LeetCode_208_071.go:10
FunctionConstructor
(capacity int)
Week 07/id_011/lru-cache.go:14
FunctionConstructor
(capacity int)
Week 07/id_451/LeetCode_146_451.go:11
FunctionConstructor
(capacity int)
Week 07/id_631/LeetCode_146_631.go:16
FunctionConstructor
(capacity int)
Week 07/id_071/LeetCode_146_071.go:29
FunctionConstructor
** Initialize your data structure here. Set the size of the deque to be k. */
Week 01/id_011/design-circular-deque.go:14
MethodCor
(int x, int y)
Week 06/id_466/LeetCode_212_466.java:126
MethodCountBits
(int num)
Week 07/id_546/LeetCode_338_546.cs:14
MethodCountBits
<summary> 比特位计数 时间复杂度O(n)。 n & (n - 1)是打掉最低位的1,所以n比n & (n - 1)多一个1。 </summary> <param name="num"></param> <returns></returns>
Week 07/id_171/CountingBitsSol.cs:17
MethodCounterTwo
<summary> 计数器的另外一种解法 </summary> <param name="s"></param> <param name="t"></param> <returns></returns>
Week 02/id_171/ValidAnagramSol.cs:56
FunctionDFS
(self, n, row, cols, pie, na)
Week 07/id_246/LeetCode_52_246.py:52
MethodDFS
(char[][] grid, int x, int y)
Week 06/id_701/leetcode_200_701.cs:23
MethodDFS
(char[][] grid, int x, int y)
Week 03/id_701/LeetCode_200_701.cs:23
MethodDFS
(queens, xy_dif, xy_sum)
Week 02/id_091/LeetCode_51_091.py:7
MethodDFSMarking
(char[][] grid, int i, int j)
Week 03/id_546/LeetCode_200_546.cs:35
MethodDeleteFront
** Deletes an item from the front of Deque. Return true if the operation is successful. */
Week 01/id_011/design-circular-deque.go:59
MethodDeleteFront
** Deletes an item from the front of Deque. Return true if the operation is successful. */
Week 01/id_301/circularDeque.go:41
MethodDeleteFront
Deletes an item from the front of Deque. Return true if the operation is successful. */
Week 01/id_701/leetcode_641_701.cs:49
MethodDeleteFront
** Deletes an item from the front of Deque. Return true if the operation is successful. */
Week 01/id_071/LeetCode_641_071.go:43
MethodDeleteLast
** Deletes an item from the rear of Deque. Return true if the operation is successful. */
Week 01/id_011/design-circular-deque.go:74
MethodDeleteLast
** Deletes an item from the rear of Deque. Return true if the operation is successful. */
Week 01/id_301/circularDeque.go:55
MethodDeleteLast
Deletes an item from the rear of Deque. Return true if the operation is successful. */
Week 01/id_701/leetcode_641_701.cs:63
MethodDeleteLast
** Deletes an item from the rear of Deque. Return true if the operation is successful. */
Week 01/id_071/LeetCode_641_071.go:55
MethodDeque
()
Week 07/id_466/LeetCode_146_466.java:120
MethodDfs
(int[][] m, int[] visited, int i)
Week 06/id_171/FriendCirclesSol.cs:24
MethodDicValid
<summary> 字典,先将s的字符加入到字典中,再遍历t的字符,进行减少,如果发现有字符不在字典中,则证明是新的字母,直接返回false, 最后返回true </summary> <param name="s"></param> <param name="t"></param> <returns
Week 02/id_171/ValidAnagramSol.cs:86
MethodDisignCicularDeque
(int k)
Week 01/id_276/DisignCicularDeque.java:7
MethodDisjSet
Week 06/id_616/LeetCode_547_616.cpp:7
MethodDisjoint
(int n)
Week 06/id_161/NumIslands.java:42
MethodDisjointSet
(int n)
Week 06/id_161/FriendZone.java:22
MethodDisjointSet
(int size)
Week 06/id_466/LeetCode_547_466.java:102
MethodDisjointSet
Week 06/id_586/leetcode_547_586.cc:3
MethodDisjointSet
Week 06/id_151/LeetCode_547_151.cpp:3
MethodDo
<summary> 使用回溯。 假设1到n是所有能使用的数字,k是要组成k个元素的列表 每一次递归的时候,判断临时容器中数字是否已经够了,如果够了,就加入到结果集中。 递归方法中有层级和开始数字这两个人重要参数。 最开始进入代码时,开始数字是1,层级是1,进行循环,此时循环能达到最大数字是n - (
Week 02/id_171/CombinationsSol.cs:66
MethodDoubleList
()
Week 07/id_306/DoubleList.java:10
MethodDoubleList
()
Week 07/id_321/LeetCode_146_321.java:69
MethodDoubleList
()
Week 07/id_371/Leetcode_146_371.java:34
MethodDoubleList
()
Week 07/id_006/LeetCode_146_006.java:29
MethodDoubleNode
(T key, T value)
Week 07/id_431/LeetCode_146_431.java:100
MethodEntry
(Integer key, Integer value)
Week 02/id_021/algorithm/src/main/java/com/lqw/algorithm/cache/LRUCache.java:123
MethodEntry
(K key, V value, MyMap.Entry<K, V> next)
Week 02/id_416/MyHashMap.java:123
MethodFind
(TreeNode current, TreeNode p, TreeNode q, Stack<TreeNode> stack, ref bool findP, ref bool findQ, ref int inde
Week 02/id_171/LowestCommonAncestorOfABinaryTreeSol.cs:126
MethodFindCircleNum
(int[][] m)
Week 06/id_171/FriendCirclesSol.cs:9
MethodFindContentChildren
(int[] g, int[] s)
Week 03/id_546/LeetCode_455_546.cs:14
MethodFindContentChildren
(int[] g, int[] s)
Week 03/id_171/AssignCookiesSol.cs:12
MethodFindMin
<summary> 二分查找法 </summary> <param name="nums"></param> <returns></returns>
Week 03/id_171/FindMinimumInRotatedSortedArraySol.cs:15
MethodFindPOrQ
<summary> 第一种方法,找P或者Q。 在遍历二叉树的时候,针对当前节点的左右子树去查找P或者Q,只要找到P或者Q,就返回,找到的那个节点的所有子树都不会再遍历 如果只找到其中一个,则证明所有遍历过的节点中不存在另外一个,那么另外一个只能在找到的那个节点的子树中。 如果找到两个,则证明P和Q在
Week 02/id_171/LowestCommonAncestorOfABinaryTreeSol.cs:80
MethodForce
<summary> 暴力解法。 双重循环,判断nums[i] + nums[j]是否等于target。 时间复杂度是O(n²) </summary> <param name="nums"></param> <param name="target"></param> <returns></return
Week 02/id_171/TwoSumSol.cs:55
MethodGenerateParenthesis
(int n)
Week 02/id_701/leetcode_22_701.cs:7
MethodGet
(key int)
Week 07/id_011/lru-cache.go:21
MethodGet
(key int)
Week 07/id_451/LeetCode_146_451.go:19
MethodGet
(key int)
Week 07/id_071/LeetCode_146_071.go:39
← previousnext →1,801–1,900 of 6,280, ranked by callers