MCPcopy Create free account

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

Functions7,451 in github.com/algorithm004-03/algorithm004-03

↓ 2 callersMethodsearchPrefix
(String word)
Week 06/id_698/LeetCode_208_698.java:65
↓ 2 callersMethodsearchPrefix
(String word)
Week 06/id_143/LeetCode_208_143.java:35
↓ 2 callersMethodsearchPrefix
(String word)
Week 06/id_683/LeetCode_208_683.java:63
↓ 2 callersMethodsearchPrefix
(String word)
Week 06/id_588/LeetCode_208_588.java:27
↓ 2 callersMethodsearchPrefix
(String word)
Week 06/id_613/java/src/main/Trie.java:57
↓ 2 callersMethodsearchPrefix
(String word)
Week 06/id_083/LeetCode_208_083.java:68
↓ 2 callersMethodsearchPrefix
(String word)
Week 06/id_593/LeetCode_208_593.java:64
↓ 2 callersMethodsearhBinary
(int[] nums, int left, int right, int target)
Week 03/id_618/LeetCode_33_618 .java:170
↓ 2 callersMethodsetEnd
(boolean end)
Week 06/id_243/LeetCode_208_243.java:106
↓ 2 callersMethodsetEnd
()
Week 06/id_568/LeetCode_208_568.java:29
↓ 2 callersMethodsetEnd
()
Week 06/id_143/LeetCode_208_143.java:75
↓ 2 callersMethodsetWord
(String word)
Week 06/id_593/LeetCode_208_593.java:107
↓ 2 callersMethodsolution
@param s @return
Week 05/id_038/week-05-038/src/main/java/com/github/kylefeng/LeetCode_91_038.java:17
↓ 2 callersMethodsolution_brutal
暴力算法: 双指针截取字串,通过 isValid 函数判断该子串是否合法。 最近子问题,就是截取字串,利用栈判断合法性。 @param s @return
Week 05/id_038/week-05-038/src/main/java/com/github/kylefeng/LeetCode_32_038.java:36
↓ 2 callersMethodsolution_dp
基于递推公式: 1. 若 s[i] == ')' 并且 s[i-1] = '(',即形如 "......()" 那么递推公式为 dp[i] = dp[i-2] + 2 <p> <p> 2. 若 s[i] == ')' 且 s[i-1] = ')',即形如 "......))" 当 s[i - dp[
Week 05/id_038/week-05-038/src/main/java/com/github/kylefeng/LeetCode_32_038.java:67
↓ 2 callersFunctionsolveNQueens
(n)
Week 06/id_533/LeetCode_51.js:8
↓ 2 callersMethodsortt
(List list, TreeNode root)
Week 01/id_213/213_week02/InorderTraversal.java:8
↓ 2 callersMethodsortt
(List list, TreeNode root)
Week 02/id_213/213_week02/InorderTraversal.java:8
↓ 2 callersMethodstartsWith
Returns if there is any word in the trie that starts with the given prefix.
Week 06/id_363/LeetCode_208_363.java:56
↓ 2 callersMethodstrDiff
(String s1, String s2)
Week 06/id_063/Leetcode_433_063.java:10
↓ 2 callersFunctionswap
(a, b)
Week 02/id_228/LeetCode_46_228.js:9
↓ 2 callersMethodtop
(self)
Week 01/id_718/155.min-stack.py:28
↓ 2 callersMethodtotalNQueens
(int n)
Week 07/id_363/LeetCode_52_363.java:27
↓ 2 callersMethodtotalNQueens_2
(int n)
Week 07/id_363/LeetCode_52_363.java:58
↓ 2 callersMethodtrap
(self, height: List[int])
Week 01/id_118/LeetCode_42_118.py:12
↓ 2 callersMethodtwoSum
(int[] nums, int target)
Week 01/id_038/week-01-038/src/main/java/com/github/kylefeng/week01/LeetCode_1_038.java:14
↓ 2 callersFunctionunio
(i, j)
Week 06/id_533/LeetCode_130.js:41
↓ 2 callersFunctionunion
(parent []int, i, j int)
Week 06/id_198/LeetCode_547_198.simple.go:12
↓ 2 callersMethodunion
(int p, int q)
Week 06/id_653/LeetCode_547_653.java:44
↓ 2 callersMethodunion
(int i, int j)
Week 06/id_418/LeetCode_200_418.java:49
↓ 2 callersMethodunion
(self, p, q)
Week 06/id_718/200.number-of-islands.py:25
↓ 2 callersMethodunion
(int x, int y)
Week 06/id_738/pratice/LeetCode_200_738.java:29
↓ 2 callersMethodunion
(int i,int j)
Week 06/id_693/LeetCode_130_693.java:70
↓ 2 callersMethodunion
(self, p, q)
Week 06/id_113/LeetCode200.py:21
↓ 2 callersFunctionuniquePaths
(m, n)
Week 05/id_533/LeetCode_62_533.js:8
↓ 2 callersMethoduniquePaths
问题:一个机器人位于m n网格的左上角,机器人只能想上或者向下移动一步,机器人到达右下角有多少总不同的路径 数学归纳法:先计算机器人在最右边和最下面的路径 子问题 状态数组 状态数组中存储 当前格子到终点的路径数 动态规划方程 dp[i , j] = dp[i - 1, j] + dp[i,j +
Week 05/id_363/practice/LeetCode_62_363.java:46
↓ 2 callersMethoduniquePaths2
(int m, int n)
Week 05/id_363/practice/LeetCode_62_363.java:63
↓ 2 callersMethoduniquePaths3
(int m, int n)
Week 05/id_363/practice/LeetCode_62_363.java:91
↓ 2 callersMethoduniquePaths4
(int m, int n)
Week 05/id_693/practise/LeetCode_62_693.java:68
↓ 2 callersMethoduniquePaths4
(int m, int n)
Week 05/id_363/practice/LeetCode_62_363.java:109
↓ 2 callersMethoduniquePaths5
使用公式 m表示列 n表示行 需要 m -1 right 和 n -1 down 才能到达终点 所以这也是全排列的问题 m-1个 R 和 n- 1个D的全排列 方程是(m + n)! / (m ! n !); @param m @param n @return
Week 05/id_363/practice/LeetCode_62_363.java:132
↓ 2 callersMethoduniquePathsWithObstacles2
网格中可能有障碍物 遇到障碍物:加0, 正常情况 是 dp[i, j] = dp[i + 1][j] + dp[i][j + 1] 子问题:把网格缩小 状态数组:当前位置到达终点的可能的路径个数 dp方程:dp[i, j] = dp[i + 1][j] + dp[i][j + 1] 递归 ->
Week 05/id_363/practice/LeetCode_63_363.java:46
↓ 2 callersMethoduniquePathsWithObstacles3
(int[][] obstacleGrid)
Week 05/id_363/practice/LeetCode_63_363.java:95
↓ 2 callersMethoduniquePathsWithObstacles4
最简单写法 @param obstacleGrid @return
Week 05/id_363/practice/LeetCode_63_363.java:132
↓ 2 callersMethodvalidRange
(int value)
Week 01/id_418/LeetCode_641_418.java:248
↓ 2 callersFunctionvisitNode
(begin_queue, begin_visited, end_queue, end_visited)
Week 03/id_358/leetcode-127-ladderWord-2.js:51
↓ 2 callersMethodvisitWordNode
( Queue<Pair<String, Integer>> Q, HashMap<String, Integer> visited, HashMa
Week 06/id_048/LeetCode_127_048.java:72
↓ 1 callersFunctionC
(n, m)
Week 05/id_008/LeetCode_62_008.js:9
↓ 1 callersFunctionConstructor
** Initialize your data structure here. */
Week 06/id_733/LeetCode_208_733.go:8
↓ 1 callersFunctionConstructor
** Initialize your data structure here. */
Week 06/id_198/LeetCode_102_198.go:11
↓ 1 callersFunctionConstructor
** Initialize your data structure here. Set the size of the deque to be k. */
Week 01/id_203/LeetCode_641_203.go:20
↓ 1 callersMethodDFS
(self, board_p, board_xs_p, board_ys_p, board_x_p, board_y_p, current_word, current_dict)
Week 06/id_498/LeetCode_212_498.py:39
↓ 1 callersMethodDFS
(int[][] grid,int i,int j)
Week 06/id_468/leetcode200_6_468.java:30
↓ 1 callersMethodDFS
(char[][] grid,int i,int j)
Week 03/id_468/leetcode200_3_468.java:31
↓ 1 callersMethodDFS
(self, n, row, cur_state)
Week 02/id_113/LeetCode51.py:13
↓ 1 callersMethodDFS0
(Map<String, List<String>> map_tree, List<List<String>> result,String begin,LinkedList<String> list,String end
Week 03/id_098/LeetCode_127_098.java:97
↓ 1 callersMethodDeleteFront
** Deletes an item from the front of Deque. Return true if the operation is successful. */
Week 01/id_203/LeetCode_641_203.go:72
↓ 1 callersMethodDeleteLast
** Deletes an item from the rear of Deque. Return true if the operation is successful. */
Week 01/id_203/LeetCode_641_203.go:92
↓ 1 callersMethodDoubleBuild_bfs
todo 核心 : bfs 双向搜索建树; boolean b 标志是正向搜索还是反向搜索的标志位
Week 03/id_098/LeetCode_127_098.java:36
↓ 1 callersMethodGetCount
Week 06/id_173/LeetCode_200_173.cpp:55
↓ 1 callersMethodGetCount
Week 06/id_173/LeetCode_547_173.cpp:33
↓ 1 callersMethodGetRear
** Get the last item from the deque. */
Week 01/id_203/LeetCode_641_203.go:121
↓ 1 callersMethodInsert
(word string)
Week 06/id_733/LeetCode_212_733.go:82
↓ 1 callersMethodInsert
** Inserts a word into the trie. */
Week 06/id_198/LeetCode_102_198.go:17
↓ 1 callersMethodInsert
(idx int)
Week 07/id_733/LeetCode_493_733.go:82
↓ 1 callersMethodInsertLast
** Adds an item at the rear of Deque. Return true if the operation is successful. */
Week 01/id_203/LeetCode_641_203.go:51
↓ 1 callersFunctionKey
(str)
Week 02/id_008/LeetCode_49_008.js:50
↓ 1 callersFunctionMax
(a, b int)
Week 05/id_203/LeetCode_32_203.go:54
↓ 1 callersMethodMerge
(self, array, first, mid, last)
Week 07/id_738/LeetCode_493_738.py:66
↓ 1 callersMethodMergeSort
(self, array, first, last)
Week 07/id_738/LeetCode_493_738.py:57
↓ 1 callersFunctionNewBIT
(cap int)
Week 07/id_733/LeetCode_493_733.go:76
↓ 1 callersFunctionNewDisjointSet
(n int)
Week 06/id_733/LeetCode_547_733.go:24
↓ 1 callersFunctionNewStack
()
Week 02/id_733/LeetCode_94_733.go:72
↓ 1 callersFunctionNewStack
()
Week 02/id_733/LeetCode_144_733.go:57
↓ 1 callersFunctionNewUF
(n int)
Week 06/id_198/LeetCode_547_198.go:8
↓ 1 callersFunctionNewUFS
(n int)
Week 06/id_188/leetCode-547-188.go:62
↓ 1 callersFunctionNqueens
(row)
Week 02/id_023/leetCode_051_023.js:41
↓ 1 callersFunctionQuickSort
(array []int, begin, end int)
Week 07/id_198/quick_sort.go:3
↓ 1 callersMethodRemoveEnd
()
Week 07/id_733/LeetCode_146_733.go:73
↓ 1 callersMethodSearch
** Returns if the word is in the trie. */
Week 06/id_198/LeetCode_102_198.go:35
↓ 1 callersMethodSearch
(idx int)
Week 07/id_733/LeetCode_493_733.go:89
↓ 1 callersMethodSearchNode
(b byte)
Week 06/id_733/LeetCode_212_733.go:97
↓ 1 callersMethodSearchNode
(int[] nums, int target)
Week 03/id_108/LeeCode_033_108.java:5
↓ 1 callersMethodSetCnt
()
Week 06/id_733/LeetCode_547_733.go:45
↓ 1 callersMethodStartsWith
** Returns if there is any word in the trie that starts with the given prefix. */
Week 06/id_198/LeetCode_102_198.go:53
↓ 1 callersMethodUnion
(p, q int)
Week 06/id_733/LeetCode_547_733.go:35
↓ 1 callersMethodUnion
(i int, j int)
Week 06/id_188/leetCode-547-188.go:91
↓ 1 callersMethodUnion
(int p, int q)
Week 06/id_128/LeetCode_547_128.cs:45
↓ 1 callersMethodUnion
Week 06/id_173/LeetCode_547_173.cpp:24
↓ 1 callersFunctionX
(k)
Week 03/id_008/LeetCode_74_008.js:42
↓ 1 callersMethod_buildHelper
(int[] preorder, int pStart, int pEnd, int[] inorder, int inStart, int inEnd)
Week 02/id_588/LeetCode_105_588.java:12
↓ 1 callersMethod_buildListStringFromChessboard
(char[][] chessboard)
Week 02/id_588/LeetCode_51_588.java:70
↓ 1 callersMethod_climbStairs
(int n, int[] cache)
Week 02/id_708/LeetCode_70_708.java:8
↓ 1 callersMethod_construct_dict
convert wordList into a neighbor dictionary of list :param wordList: :return:
Week 03/id_118/LeetCode_127_118.py:51
↓ 1 callersMethod_deserialize
(self, l)
Week 02/id_718/297.serialize-and-deserialize-binary-tree.py:43
↓ 1 callersMethod_dfs
(self, board, i, j, cur_word, cur_dict)
Week 06/id_318/LeetCode_212_318.py:33
↓ 1 callersMethod_dfs
(self, board, ret, i, j, cur_word, cur_dict)
Week 06/id_718/212.word-search-ii.py:34
↓ 1 callersMethod_dfs
(self, board, i, j, cur_word, cur_dict)
Week 06/id_113/LeetCode212.py:27
↓ 1 callersMethod_findPivot
(int[] nums)
Week 03/id_613/java/src/main/Leetcode33SolutionOne.java:58
↓ 1 callersMethod_gen
(self, n, ret, result, left, right)
Week 02/id_718/22.generate-parentheses.py:14
← previousnext →701–800 of 7,451, ranked by callers