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
↓ 1 callers
Method
mergeSort
(int[] nums, int begin, int end)
Week 07/id_371/Leetcode_493_371.java:30
↓ 1 callers
Method
mergeSort
(int[] nums, int s, int e)
Week 07/id_106/493.reverse-pairs.java:47
↓ 1 callers
Method
mergeSort
(int lo, int hi, int[] nums)
Week 07/id_006/LeetCode_493_006.java:15
↓ 1 callers
Method
mergeSort
(int[] nums, int left, int right)
Week 07/id_366/Leetcode_493_366.java:17
↓ 1 callers
Method
mergeSort
(int[] array, int begin, int end)
Week 07/id_491/LeetCode_493_491.java:10
↓ 1 callers
Method
mergeSort
(int[] nums, int s, int e)
Week 07/id_766/LeetCode_493_766.java:14
↓ 1 callers
Function
mergeTwoLists
Solution 2: Interative Loop. Use a dummy node to simplify the interactive loop. Time Complexity : O(M+N) Space Complexity: O(1)
Week 01/id_236/LeetCode_21_236.go:34
↓ 1 callers
Method
mergeTwoLists
模拟即可 执行用时 :1 ms, 在所有 java 提交中击败了94.36%的用户 内存消耗 :39.8 MB, 在所有 java 提交中击败了66.20%的用户 @param l1 @param l2 @return
Week 01/id_711/Leetcode_21_711.java:31
↓ 1 callers
Function
merge_in_place
(arr, l, mid, r)
Week 07/id_556/SortFuntions.py:99
↓ 1 callers
Method
method2
(int n)
Week 07/id_466/LeetCode_52_466.java:103
↓ 1 callers
Method
method2
(int[] nums)
Week 07/id_466/LeetCode_493_466.java:100
↓ 1 callers
Method
method2
(int n)
Week 07/id_466/LeetCode_51_466.java:121
↓ 1 callers
Function
min
(a, b int)
Week 03/id_451/LeetCode_154_451.go:1
↓ 1 callers
Method
minDistance
(String word1, String word2)
Week 05/id_431/LeetCode_72_431.java:8
↓ 1 callers
Method
minDistance
自己想出来的解法,nice,看了题解,和题解做法差不多,nice f[i][j]表示word1以第i个字符结尾的子串和word2第j个字符结尾的子串的最小编辑距离 f[i][j] = min(f[i][j - 1], f[i - 1][j], f[i - 1][j - 1]) + 1; if (wo
Week 05/id_711/Leetcode_72_711.java:19
↓ 1 callers
Method
minDistance2
(String word1, String word2)
Week 05/id_556/LeetCode_72_556.java:37
↓ 1 callers
Function
minInt
(i, j int)
Week 05/id_011/minimum-path-sum.go:18
↓ 1 callers
Function
minInt
(i, j int)
Week 05/id_011/split-array-largest-sum.go:33
↓ 1 callers
Function
minInt
(i, j int)
Week 08/id_011/reverse-string-ii.go:12
↓ 1 callers
Method
minMutation
(String start, String end, String[] bank)
Week 06/id_466/LeetCode_437_466.java:83
↓ 1 callers
Method
minMutation
(String start, String end, String[] bank)
Week 06/id_611/LeetCode_433_611.java:24
↓ 1 callers
Method
minMutation
仿解1:单向 BFS<===(如何转化成单向 BFS的问题的?差1个字符就是1度关系,差2个字符就是2度关系,依次将当前顶点的一度关系加入队列) @return
Week 03/id_371/Leetcode_433_371.java:24
↓ 1 callers
Method
minMutation
(String start, String end, String[] bank)
Week 03/id_006/LeetCode_433_006.java:10
↓ 1 callers
Method
minMutation
(String start, String end, String[] bank)
Week 03/id_611/LeetCode_433_611.java:24
↓ 1 callers
Function
minPathSum
1. dp问题: dp[i][j] += min(dp[i-1][j], dp[i][j-1])
Week 05/id_091/Leetcode_64_091.py:16
↓ 1 callers
Method
minPathSum
(int[][] grid)
Week 06/id_076/LeetCode_64_076.java:15
↓ 1 callers
Method
minPathSum
(int[][] grid)
Week 05/id_076/LeetCode_64_076.java:15
↓ 1 callers
Method
minPathSum
(int[][] grid)
Week 05/id_466/LeetCode_64_466.java:49
↓ 1 callers
Method
minPathSum
f[i][j] = min(f[i - 1][j],f[i][j - 1]) + grid[i][j]; 执行用时 :3 ms, 在所有 java 提交中击败了91.94%的用户 内存消耗 :40 MB, 在所有 java 提交中击败了84.28%的用户 @param grid @return
Week 05/id_711/Leetcode_64_711.java:20
↓ 1 callers
Method
minPathSum
(int[][] grid)
Week 05/id_501/week05/LeetCode_64_501.java:11
↓ 1 callers
Method
minSequence
(String word1, String word2)
Week 05/id_556/LeetCode_72_556.java:72
↓ 1 callers
Method
minWindow
(String s, String t)
Week 05/id_041/LeetCode_76_041.java:21
↓ 1 callers
Function
minimumTotal
(triangle)
Week 05/id_016/LeetCode_120_016.js:55
↓ 1 callers
Method
minimumTotal
Week 05/id_536/leetcode_120_536.cpp:77
↓ 1 callers
Method
minimumTotal3
仿解3:dP(自底向上) +去掉额外的缓存数组 @author Shaobo.Qian @date 2019/11/12 @link https://leetcode.com/problems/triangle/discuss/38730/DP-Solution-for-Triangle
Week 05/id_371/Leetcode_120_371.java:31
↓ 1 callers
Function
move
(nums []int, numsLen int)
Week 01/id_736/LeetCode_189_736.go:22
↓ 1 callers
Method
moveDown
(Set<String> set, int i, int j, int distance)
Week 03/id_431/LeetCode_874_431.java:82
↓ 1 callers
Method
moveLeft
(Set<String> set, int i, int j, int distance)
Week 03/id_431/LeetCode_874_431.java:64
↓ 1 callers
Method
moveNodeToEnd
(DNode node)
Week 08/id_431/LeetCode_387_431.java:66
↓ 1 callers
Method
moveRight
(Set<String> set, int i, int j, int distance)
Week 03/id_431/LeetCode_874_431.java:55
↓ 1 callers
Method
moveUp
(Set<String> set, int i, int j, int distance)
Week 03/id_431/LeetCode_874_431.java:73
↓ 1 callers
Method
moveZero1
方法一: 两层for循环,第一个和第二个数判断,第一个数为0,则与第二个数换位置 互换后还是0,再与第三个互换,直到非零为止。 @param nums
Week 01/id_501/homework/week01/MoveZeros.java:16
↓ 1 callers
Function
moveZeroes
Week 01/id_518/LeetCode_283_518.c:11
↓ 1 callers
Function
moveZeroes
(nums)
Week 01/id_441/move_zero.js:4
↓ 1 callers
Method
moveZeroes
(int[] nums)
Week 01/id_556/LeetCode_283_556.java:7
↓ 1 callers
Method
moveZeroes
(int[] nums)
Week 01/id_481/LeetCode_283_481.java:43
↓ 1 callers
Method
moveZeroes
(int[] nums)
Week 01/id_481/LeetCode_283_481.java:59
↓ 1 callers
Method
moveZeroes
(int[] nums)
Week 01/id_481/LeetCode_283_481.java:76
↓ 1 callers
Method
moveZeroes
(int[] nums)
Week 01/id_371/LeetCode_283_371.java:19
↓ 1 callers
Method
moveZeroes
(int[] nums)
Week 01/id_006/LeetCode_283_006.java:26
↓ 1 callers
Method
moveZeroes
(int[] nums)
Week 01/id_031/LeetCode_283_031.java:39
↓ 1 callers
Method
moveZeroes
(int[] nums)
Week 02/id_021/algorithm/src/main/java/com/lqw/algorithm/array/movezero/SolutionOne.java:26
↓ 1 callers
Method
moveZeroes1
(int[] nums)
Week 01/id_351/LeetCode_283_351.java:51
↓ 1 callers
Method
moveZeroes2
�ⷨ2��������������Ҫ�������飬��������ĿҪ�� ************/
Week 01/id_536/leetcode_283_536.cpp:26
↓ 1 callers
Method
moveZeroes2
(int[] nums)
Week 01/id_031/LeetCode_283_031.java:12
↓ 1 callers
Method
moveZeroes3
(int[] nums)
Week 01/id_511/LeetCode_283_511.java:44
↓ 1 callers
Method
moveZeroes3
(int[] nums)
Week 01/id_031/LeetCode_283_031.java:58
↓ 1 callers
Method
moveZeros
(self, nums)
Week 01/id_661/LeetCode_283_661.py:9
↓ 1 callers
Method
moveZeros
简单模拟 执行用时 :0 ms, 在所有 java 提交中击败了100.00%的用户 内存消耗 :37.6 MB, 在所有 java 提交中击败了95.46%的用户 @param nums
Week 01/id_711/Leetcode_283_711.java:18
↓ 1 callers
Method
move_node_to_tail
(self, key)
Week 07/id_651/LeetCode_146_651.py:24
↓ 1 callers
Method
mutation
(List<String> beginWordList, String endWord, List<String> wordList)
Week 03/id_491/LeetCode_127_491.java:14
↓ 1 callers
Method
mutation
(List<String> wordList, int stepBegin, int stepEnd)
Week 03/id_491/LeetCode_126_491.java:66
↓ 1 callers
Method
myAtoi
原解 @author Shaobo.Qian @date 2019/12/6
Week 08/id_371/Leetcode_8_371.java:28
↓ 1 callers
Method
myAtoi
(self, str: str)
Week 08/id_091/LeetCode_8_091.py:6
↓ 1 callers
Function
myPow
(x, n)
Week 02/id_016/LeetCode_50_016.js:65
↓ 1 callers
Method
myPow3
(double x, int n)
Week 02/id_371/Leetcode_50_371.java:14
↓ 1 callers
Method
myPowHelper
(double x, long n)
Week 02/id_241/LeetCode_50_241.java:14
↓ 1 callers
Function
mySqrt
(x)
Week 03/id_016/LeetCode_69_016.js:56
↓ 1 callers
Function
mySqrt
(x int)
Week 03/id_301/LeetCode_69_301.go:5
↓ 1 callers
Method
mySqrt
Week 03/id_536/leetcode_69_536.cpp:74
↓ 1 callers
Method
mySqrt2
仿解2:(牛顿迭代法) @author Shaobo.Qian @date 2019/11/3
Week 03/id_371/Leetcode_69_371.java:24
↓ 1 callers
Method
newAPI
()
Week 01/id_516/DequeTest.java:31
↓ 1 callers
Function
newVisited
(m, n int )
Week 06/id_071/LeetCode_200_071.go:43
↓ 1 callers
Method
numDecodings
递归 @param s @return
Week 05/id_501/week05/LeetCode_91_501.java:15
↓ 1 callers
Method
numDecodings1
题解更优美写法 @param s @return
Week 05/id_711/Leetcode_91_711.java:14
↓ 1 callers
Method
numIslands
并查集写法 执行用时 :5 ms, 在所有 java 提交中击败了36.97%的用户 内存消耗 :41.3 MB, 在所有 java 提交中击败了82.09%的用户 @param grid @return
Week 06/id_711/Leetcode_200_711.java:60
↓ 1 callers
Method
numIslands
(self, grid: List[List[str]])
Week 06/id_361/leetCode_200_361.py:5
↓ 1 callers
Method
numIslands
(char[][] grid)
Week 06/id_006/LeetCode_200_006.java:67
↓ 1 callers
Method
numIslands
原解1:DFS @param grid @return
Week 03/id_371/Leetcode_200_371.java:22
↓ 1 callers
Method
numIslands
归零算法 执行用时 :4 ms, 在所有 java 提交中击败了55.79%的用户 内存消耗 :41.2 MB, 在所有 java 提交中击败了83.54%的用户 @param grid @return
Week 03/id_711/Leetcode_200_711.java:28
↓ 1 callers
Method
numIslands
(char[][] grid)
Week 03/id_131/LeetCode_200_131.java:4
↓ 1 callers
Method
numIslands2
(self, grid: List[List[str]])
Week 03/id_091/Leetcode_200_091.py:35
↓ 1 callers
Method
numIslandsHelper
(int i, int j)
Week 03/id_241/LeetCode_200_241.java:25
↓ 1 callers
Method
numIslandsHelper2
(int i, int j)
Week 03/id_241/LeetCode_200_241.java:56
↓ 1 callers
Method
numJewelsInStones
(String J, String S)
Week 08/id_371/Leetcode_771_371.java:15
↓ 1 callers
Method
numJewelsInStones
Week 08/id_536/leetcode_771_536.cpp:59
↓ 1 callers
Method
obstracles2Set
(int[][] obstacles)
Week 03/id_431/LeetCode_874_431.java:30
↓ 1 callers
Method
oldAPI
()
Week 01/id_516/DequeTest.java:12
↓ 1 callers
Function
onlyOneDiff
(word1, word2)
Week 06/id_256/LeetCode_126_256.js:47
↓ 1 callers
Function
partion
(list, start, r)
Week 07/id_091/sort.py:52
↓ 1 callers
Function
partition
(arr, l, r)
Week 07/id_556/SortFuntions.py:142
↓ 1 callers
Method
partition
(int[] array, int begin, int end)
Week 07/id_476/Sort.java:116
↓ 1 callers
Method
partition
(int[] arr, int l, int r)
Week 07/id_081/QuickSort.java:12
↓ 1 callers
Method
partition
(int[] nums, int start, int end)
Week 02/id_471/LeetCode_169_471.java:21
↓ 1 callers
Method
path1
(TreeNode root, TreeNode p, TreeNode q)
Week 02/id_466/LeetCode_236_466.java:107
↓ 1 callers
Method
path10
(String beginWord, String endWord, List<String> wordList)
Week 06/id_466/LeetCode_127_466.java:669
↓ 1 callers
Method
path10
(String beginWord, String endWord, List<String> wordList)
Week 03/id_466/LeetCode_127_466.java:669
↓ 1 callers
Method
permute
(int[] nums)
Week 02/id_481/Leetcode_46_481.java:37
↓ 1 callers
Method
permute
原解1:回溯法(未解除,对回溯时,状态的重置理解不够深入,应该需要将所有改变的状态重置) @author Shaobo.Qian @date 2019/11/9
Week 02/id_371/Leetcode_46_371.java:65
↓ 1 callers
Method
permute
Week 02/id_651/LeetCode_46_651.cpp:29
← previous
next →
1,301–1,400 of 6,280, ranked by callers