MCPcopy Create free account

hub / github.com/algorithm006-class02/algorithm006-class02 / functions

Functions5,772 in github.com/algorithm006-class02/algorithm006-class02

Methodsearch
Week_06/G20200343030544/LeetCode_208_544.cpp:22
Methodsearch
Returns if the word is in the trie. */
Week_06/G20200343030508/LeetCode_208_508.cpp:67
Methodsearch
Returns if the word is in the trie.
Week_06/G20200343030364/LeetCode_208_364.java:80
Methodsearch
Returns if the word is in the trie.
Week_06/G20200343030600/LeetCode_208_600.java:26
Methodsearch
Returns if the word is in the trie.
Week_06/G20200343030608/实现Trie.py:23
Methodsearch
Returns if the word is in the trie.
Week_06/G20200343030402/[208]实现 Trie (前缀树).java:51
Methodsearch
向字典树中查找单词 @param word 单词 @return
Week_06/G20200343030426/Trie208.java:55
Methodsearch
(String word)
Week_06/G20200343030368/LeetCode_208_368.java:26
Methodsearch
Returns if the word is in the trie. */
Week_06/G20200343030462/leetcode-208-462.cpp:26
Methodsearch
(word)
Week_06/G20200343030380/Leetcode-208-380.js:59
Methodsearch
Returns if the word is in the trie.
Week_06/G20200343030362/LeetCode_208_362.py:19
Methodsearch
Returns if the word is in the trie.
Week_06/G20200343030620/LeetCode_208_620.py:21
Methodsearch
Returns if the word is in the trie.
Week_06/G20200343030386/LeetCode_208_386.java:47
Methodsearch
Returns if the word is in the trie.
Week_06/G20200343030378/LeetCode_208_378.java:31
Methodsearch
Returns if the word is in the trie.
Week_06/G20200343030610/LeetCode_208_610.py:23
Methodsearch
Week_06/G20200343030506/LeetCode_208_506.cpp:29
Methodsearch
Week_03/G20200343030400/LeetCode_33_400.cpp:6
Methodsearch
(self, nums: List[int], target: int)
Week_03/G20200389010036/LeetCode_033_036.py:2
Methodsearch
(self, nums: List[int], target: int)
Week_03/G20200343030640/33_search_in_rotated_sorted_array.py:2
Methodsearch
Week_03/G20200343030622/LeetCode_33_622.cc:4
Methodsearch
(int[] nums, int target)
Week_03/G20200343030436/33.搜索旋转排序数组.java:9
Methodsearch
(int[] nums, int target)
Week_03/G20200343030022/LeetCode_33_022.java:6
Methodsearch
(int[] nums, int target)
Week_03/G20200343030024/LeetCode_33_024.java:2
Methodsearch
(int[] nums, int target)
Week_03/G20200343030580/LeetCode_33_580.java:2
Methodsearch
1.find the minest num(problem 153) ,seperate the array to 2 sorted array 2.binary search O(logn) 4ms 89.83% */
Week_03/G20200343030636/LeetCode_33_636.cpp:48
Methodsearch
@param nums @param target @return
Week_03/G20200343030566/Leetcode_33_566.java:24
Methodsearch
Week_03/G20200343030614/LeetCode_33_614.cpp:4
Methodsearch
(int left, int right)
Week_03/G20200343030460/LeetCode_33_460..java:47
Methodsearch
(int[] nums, int target)
Week_03/G20200343030512/LeeCode_33_512.java:20
Methodsearch
(int[] nums, int target)
Week_03/G20200343030390/binarysearch/Leetcode_33_390.java:35
Methodsearch
利用二分查找求解
Week_03/G20200343030462/leetcode-33-462.cpp:4
Methodsearch
(self, nums: List[int], target: int)
Week_03/G20200343030638/LeetCode-33-638.py:2
Methodsearch
(int left, int right)
Week_03/G20200343030020/search-in-rotated-sorted-array.java:18
Methodsearch
Week_03/G20200343030506/LeetCode_33_506.cpp:10
Methodsearch2
二分法模板
Week_03/G20200343030584/LeetCode_33_584.java:58
FunctionsearchMatrix
(matrix, target)
Week_03/G20200343030380/Leetcode-74-380.js:38
FunctionsearchMatrix
* * @lc app=leetcode.cn id=74 lang=golang * * [74] 搜索二维矩阵 */ @lc code=start
Week_03/G20200343030524/m320.go:10
MethodsearchMatrix
(int[][] matrix, int target)
Week_03/G20200343030518/leetcode_74_518.java:2
MethodsearchMatrix
(int[][] matrix, int target)
Week_03/G20200343030436/74.搜索二维矩阵.java:9
MethodsearchMatrix
(int[][] matrix, int target)
Week_03/G20200343030510/LeetCode_74_510.java:3
MethodsearchMatrix
(int[][] matrix, int target)
Week_03/G20200343030022/LeetCode_74_022.java:22
MethodsearchMatrix
(int[][] matrix, int target)
Week_03/G20200343030024/LeetCode_74_024.java:2
MethodsearchMatrix
(int[][] matrix, int target)
Week_03/G20200343030584/LeetCode_74_584.java:33
MethodsearchMatrix
(int[][] matrix, int target)
Week_03/G20200343030580/LeetCode_74_580.java:2
MethodsearchMatrix
* 解法一:根据范围判定在哪一行中;再用二分查找 8ms,88.18% */
Week_03/G20200343030636/LeetCode_74_636.cpp:55
MethodsearchMatrix
Week_03/G20200343030614/LeetCode_74_614.cpp:4
MethodsearchMatrix
(int[][] matrix, int target)
Week_03/G20200343030456/LeetCode_74_456.java:3
MethodsearchMatrix
(int[][] matrix, int target)
Week_03/G20200343030572/LeetCode_74_572.java:2
MethodsearchMatrix
(int[][] a, int target)
Week_03/G20200343030364/LeetCode_74_364.java:8
MethodsearchMatrix
(self, matrix: List[List[int]], target: int)
Week_03/G20200343030608/搜索二维矩阵.py:2
MethodsearchMatrix
Week_03/G20200343030374/LeetCode_74_374.cxx:11
MethodsearchMatrix
O(M*logN)
Week_03/G20200343030374/LeetCode_74_374.cxx:26
MethodsearchMatrix
O(logN)
Week_03/G20200343030374/LeetCode_74_374.cxx:62
MethodsearchMatrix
Week_03/G20200343030462/leetcode-74-462.cpp:3
MethodsearchMatrix
Week_03/G20200343030506/LeetCode_74_506.cpp:10
MethodsearchMatrixByPower
暴力求解,缩小领域,每一行最后一个元素来定义这一行是不是存在目标值 复杂度O(n) @param matrix @param target @return
Week_03/G20200343030566/Leetcode_74_566.java:75
FunctionsearchMatrix_2
二维矩阵从左到右从上到下是单调递增,因此考察的是二分查找,重点在于一维坐标和二维坐标的转换 */
Week_03/G20200343030420/LeetCode_74_420.c:2
FunctionsearchMatrix_3
递推式查找,原理和两次查找差不多,右下的总是大于左上的,直接在矩阵上操作 */
Week_03/G20200343030420/LeetCode_74_420.c:21
Methodsearch_with_prefix
Week_06/G20200343030622/LeetCode_208_622.cc:77
Methodserialize
Encodes a tree to a single string.
Week_02/G20200343030526/Leetcode_297_526.cs:56
Methodserialize
(TreeNode root)
Week_02/G20200343030022/LeetCode_297_022.java:31
Methodserialize
Encodes a tree to a single string. :type root: TreeNode :rtype: str
Week_02/G20200343030632/Leetcode_297_632.py:10
Methodserialize
(TreeNode root)
Week_02/G20200343030536/LeetCode_297_536.java:9
Methodserialize
Encodes a tree to a single string. 序列化的时候使用前序遍历,根结点用#表示,结点之间用空格做标记
Week_02/G20200343030462/LeetCode_297_462.cpp:16
Methodserialize
Encodes a tree to a single string. :type root: TreeNode :rtype: str
Week_02/G20200343030638/LeetCode-297-638.py:10
MethodserializeHelper
(TreeNode node, StringBuilder sb)
Week_02/G20200343030526/Leetcode_297_526.cs:67
MethodsetEnd
()
Week_06/G20200343030590/LeetCode_208_590.java:25
MethodsetId
(int id)
Week_01/G20200343030022/Customer.java:19
MethodsetName
(String name)
Week_01/G20200343030022/Customer.java:27
MethodshortestPathBinaryMatrix
(self, grid: List[List[int]])
Week_06/G20200343030400/LeetCode_1091_400.py:2
MethodsingleNumber
Week_07/G20200343030462/leetcode-136-462.cpp:3
Methodsink
(i, j)
Week_06/G20190343020006/Leecode_200_006.py:3
Methodsink
Week_03/G20200343030400/LeetCode_200_400.cpp:18
Methodsink
Week_03/G20200343030374/LeetCode_200_374.cxx:31
Methodsink
Week_03/G20200343030374/LeetCode_200_374.cxx:81
Methodslove
Week_06/G20200343030462/leetcode-37-462.cpp:9
Methodsolution2
solution2 @param s @return
Week_08/G20200343030566/Leetcode_387_566.java:37
MethodsolutionOne
解决方案一 爬最后一个台阶的方案是有 n-1和n-2同时决定的,则 f(n)=f(n-1)+f(n-2) @param n @return
Week_06/G20200343030566/Leetcode_70_566.java:17
MethodsolutionOne
(int[] nums)
Week_01/G20200343030566/src/main/java/com/sebar/algorithm/Leetcode_15_566.java:32
MethodsolutionOne
解决方法一 暴力穷举,试探每一种组合形成的矩形面积 @param nums @return
Week_01/G20200343030566/src/main/java/com/sebar/algorithm/Leetcode_11_566.java:23
MethodsolutionOne
解决方案一 爬最后一个台阶的方案是有 n-1和n-2同时决定的,则 f(n)=f(n-1)+f(n-2) @param n @return
Week_01/G20200343030566/src/main/java/com/sebar/algorithm/Leetcode_70_566.java:17
MethodsolutionOne
移动zero 解决方案一 @param nums 需要移动的数组 @return
Week_01/G20200343030566/src/main/java/com/sebar/algorithm/Leetcode_283_566.java:27
MethodsolutionThree
(int[] nums, int k)
Week_01/G20200343030566/src/main/java/com/sebar/algorithm/Leetcode_189_566.java:55
MethodsolutionThree
一遍遍历hashmap @param nums @param target @return
Week_01/G20200343030566/src/main/java/com/sebar/algorithm/Leetcode_1_566.java:72
MethodsolutionThree
快慢指针, 第一个指针一直指针0元素 第二个指针向前遍历,如果出现非0 的元素,两个交换位置 劣势:内存消耗大, 交换次数过多,可优化减少交换次数 @param nums @return
Week_01/G20200343030566/src/main/java/com/sebar/algorithm/Leetcode_283_566.java:89
MethodsolutionTwo
(int n)
Week_06/G20200343030566/Leetcode_70_566.java:36
MethodsolutionTwo
@param nums @param k
Week_01/G20200343030566/src/main/java/com/sebar/algorithm/Leetcode_189_566.java:44
MethodsolutionTwo
解决方案,采用双指针进行移动比较, 一根指针在头,一根指针在尾巴 如果头指针比尾巴指针大,则尾巴指针向内移动一位, 如果头指针比尾巴指针小,则头指针向内移动一位, @param nums @return
Week_01/G20200343030566/src/main/java/com/sebar/algorithm/Leetcode_11_566.java:42
MethodsolutionTwo
(int[] nums, int target)
Week_01/G20200343030566/src/main/java/com/sebar/algorithm/Leetcode_1_566.java:49
MethodsolutionTwo
采用栈进行反转 借用栈先进后出的特性 @return
Week_01/G20200343030566/src/main/java/com/sebar/algorithm/Leetcode_206_566.java:71
MethodsolutionTwo
(int n)
Week_01/G20200343030566/src/main/java/com/sebar/algorithm/Leetcode_70_566.java:36
Functionsolve
Week_06/G20200343030420/LeetCode_130_420.c:26
Functionsolve
(board)
Week_06/G20200343030430/LeetCode_130_430.js:5
Functionsolve
(board)
Week_06/G20200343030380/Leetcode-130-380.js:13
Methodsolve
* @param String[][] $board * @return NULL */
Week_06/G20200343030440/leetcode_130_440.php:8
Methodsolve
Week_06/G20200343030428/LeetCode_130_428.cpp:10
Methodsolve
Week_06/G20200343030622/LeetCode_130_622.cc:6
Methodsolve
(char[][] board)
Week_06/G20200343030436/130.被围绕的区域.java:150
Methodsolve
(char[][] board)
Week_06/G20200343030510/LeetCode_130_510.java:3
Methodsolve
(char[][] board)
Week_06/G20200343030024/LeetCode_130_024.java:4
← previousnext →5,301–5,400 of 5,772, ranked by callers