Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/algorithm004-03/algorithm004-03
/ functions
Functions
7,451 in github.com/algorithm004-03/algorithm004-03
⨍
Functions
7,451
◇
Types & classes
3,321
↓ 4 callers
Method
isEmpty
()
Week 01/id_028/LeetCode_641_028.java:122
↓ 4 callers
Method
isEmpty
Checks whether the circular deque is empty or not.
Week 01/id_118/LeetCode_641_118.py:79
↓ 4 callers
Method
isEmpty
Week 01/id_253/LeetCode_641_253.cpp:45
↓ 4 callers
Method
isEmpty
Checks whether the circular deque is empty or not.
Week 01/id_568/LeetCode_641_568.java:95
↓ 4 callers
Method
isEmpty
Checks whether the circular deque is empty or not.
Week 01/id_658/LeetCode_641_658.java:95
↓ 4 callers
Function
isFull
(self)
Week 01/id_673/design-circular-deque.py:273
↓ 4 callers
Method
isFull
Checks whether the circular deque is full or not.
Week 01/id_098/LeetCode_641_098.java:65
↓ 4 callers
Method
isValid
(String s)
Week 01/id_693/practise/LeetCode_20_693.java:23
↓ 4 callers
Method
isValid2
(String s)
Week 01/id_693/practise/LeetCode_20_693.java:42
↓ 4 callers
Method
lemonadeChange
(int[] bills)
Week 03/id_588/LeetCode_860_588.java:7
↓ 4 callers
Method
longestValidParentheses
(String s)
Week 05/id_693/LeetCode_32_693.java:18
↓ 4 callers
Method
maxProfit
(int k, int[] prices)
Week 05/id_693/practise/LeetCode_188_693.java:15
↓ 4 callers
Function
mergeSort
(nums []int, l, r int)
Week 07/id_198/LeetCode_493_198.go:15
↓ 4 callers
Method
moveZeroes
(int[] nums)
Week 01/id_038/week-01-038/src/main/java/com/github/kylefeng/week01/LeetCode_283_038.java:11
↓ 4 callers
Function
mySqrt
(x)
Week 03/id_533/LeetCode_69_533.js:9
↓ 4 callers
Method
numDecodings
给定字符串,计算解码方法的总数 数学归纳法 dp: 子问题:将字符串边短 状态数组:存储从0到i处字符串的解码方法总数 dp方程:dp[i] = dp[i - 1] + if (s.substr(i-1,i) <= 26) : dp[i - 2] s[i] == 0, s[i - 1] ==
Week 05/id_363/LeetCode_91_363.java:35
↓ 4 callers
Method
numDecodings_20191208
题目: 给定一个只包含数字的非空字符串,请计算解码方法的总数。 dp: 1.子问题 2.状态数组 3.DP方程 循环数组 如果当前值是0 前面的值 大于2 那么 返回 0 否则 dp[i] = dp[i - 1] 如果前一个值是1 或者 前一个值是 2 当前值 <= 6 那么 dp[i] = d
Week 08/id_363/LeetCode_91_363.java:33
↓ 4 callers
Method
plusOne
(int[] digits)
Week 01/id_028/LeetCode_66_028.java:30
↓ 4 callers
Method
pop
Week 01/id_508/LeetCode_155_508.cpp:14
↓ 4 callers
Method
put
(char ch, TrieNode node)
Week 06/id_713/LeetCode_212_WordSearchII.java:143
↓ 4 callers
Method
put
(char ch , TrieNode node)
Week 06/id_253/LeetCode_208_253.java:14
↓ 4 callers
Method
put
(char ch, TrieNode node)
Week 06/id_328/ImplementTriePrefixTree.java:58
↓ 4 callers
Method
put
(char ch, TrieNode node)
Week 06/id_658/LeetCode_208_658.java:77
↓ 4 callers
Method
put
(int key, int value)
Week 07/id_418/LeetCode_146_418.java:76
↓ 4 callers
Method
put
(int key, int value)
Week 07/id_613/java/src/main/LRUCache.java:78
↓ 4 callers
Method
reversePairs
归并: 拆分 合并有序的数组 1. 计算中间索引 2.拆分 3. 合并有序数组 返回重要翻转对的数量 i < j && nums[i] > 2 nums[j] @param nums @return
Week 07/id_363/LeetCode_493_363.java:27
↓ 4 callers
Function
rob
(nums)
Week 05/id_533/LeetCode_198_533.js:9
↓ 4 callers
Method
search
Returns if the word is in the trie.
Week 06/id_363/LeetCode_208_363.java:47
↓ 4 callers
Method
search
(TreeNode root, Integer lower, Integer upper)
Week 02/id_693/practise/LeetCode_98_693.java:48
↓ 4 callers
Method
searchNode
* Returns a TrieNode object if there is any word search ends in the trie, or returns null. * @param {string} word * @returns {TrieNode}
Week 06/id_503/leetcode_208_503.js:46
↓ 4 callers
Method
searchPrefix
(String prefix)
Week 06/id_363/LeetCode_208_363.java:63
↓ 4 callers
Method
swap
(Queue<String> q, char[] buff, int x1, int y1, int x2, int y2, Set<String> visited)
Week 06/id_098/LeetCode_773_098.java:52
↓ 4 callers
Method
top
Week 01/id_508/LeetCode_155_508.cpp:23
↓ 4 callers
Method
union
(p, q)
Week 06/id_493/200.岛屿数量.js:36
↓ 4 callers
Method
union
(int x, int y)
Week 06/id_648/LeetCode_200_648.java:32
↓ 4 callers
Method
union
(int p, int q)
Week 06/id_598/LeetCode_200_598.java:86
↓ 4 callers
Method
union
(int x, int y)
Week 06/id_423/LeetCode_200_423.java:29
↓ 4 callers
Method
union
(int p, int q)
Week 06/id_543/LeetCode_200_543.java:84
↓ 4 callers
Method
union
(int x, int y)
Week 06/id_078/LeetCode_200_078.java:57
↓ 4 callers
Method
uniquePathsWithObstacles
(int[][] obstacleGrid)
Week 05/id_693/practise/LeetCode_63_693.java:59
↓ 4 callers
Method
validModCount
()
Week 01/id_418/LeetCode_641_418.java:254
↓ 3 callers
Function
BFS
(M [][]int, visited []bool, c int)
Week 06/id_343/LeetCode_547.go:19
↓ 3 callers
Method
Find
(n int)
Week 06/id_188/leetCode-547-188.go:72
↓ 3 callers
Method
Len
()
Week 02/id_733/LeetCode_49_733.go:4
↓ 3 callers
Method
_append_to_head
(self, node)
Week 07/id_738/LeetCode_146_2_738.py:75
↓ 3 callers
Method
_find
(self, p, i)
Week 06/id_298/friend-circles.py:21
↓ 3 callers
Method
_parent
(self, p, i)
Week 06/id_013/LeetCode_03_013.py:12
↓ 3 callers
Method
_remove
(self, node)
Week 07/id_738/LeetCode_146_2_738.py:69
↓ 3 callers
Function
backtrack
(col,ld,rd)
Week 07/id_308/LeedCode_190.js:22
↓ 3 callers
Method
backtrack
(int x , int y)
Week 06/id_253/LeetCode_37_253.java:36
↓ 3 callers
Method
backtrack
(int row, int col)
Week 06/id_588/LeetCode_37_588.java:51
↓ 3 callers
Function
bfs
(i, j, currStr)
Week 06/id_358/word_search_2.js:63
↓ 3 callers
Function
canJump
(nums)
Week 03/id_533/LeetCode_55_533.js:9
↓ 3 callers
Function
combine
(n, k)
Week 02/id_533/LeetCode_77_533.js:9
↓ 3 callers
Function
compare
(a, b)
Week 03/id_008/LeetCode_127_008.js:51
↓ 3 callers
Method
compare
(int[] arg0, int[] arg1)
Week 07/id_103/LeeCode_56_103.java:15
↓ 3 callers
Method
contains
(char ch)
Week 06/id_598/LeetCode_208_598.java:43
↓ 3 callers
Method
containsKey
(char letter)
Week 06/id_243/LeetCode_208_243.java:94
↓ 3 callers
Method
containsKey
(char ch)
Week 06/id_568/LeetCode_208_568.java:17
↓ 3 callers
Method
containsKey
(char ch)
Week 06/id_658/LeetCode_208_658.java:69
↓ 3 callers
Method
containsKey
(char ch)
Week 06/id_613/java/src/main/Trie.java:18
↓ 3 callers
Method
containsKey
(char c)
Week 06/id_363/LeetCode_208_363.java:88
↓ 3 callers
Method
countSubstrings
(String s, int i, int j)
Week 05/id_693/LeetCode_647_693.java:24
↓ 3 callers
Method
deleteFront
Deletes an item from the front of Deque. Return true if the operation is successful.
Week 01/id_648/MyCircularDeque.java:36
↓ 3 callers
Method
dfs
(List<List<Integer>> result, List<Integer> temp, boolean[] flags, int[] nums)
Week 02/id_273/LeetCode_47_273.java:13
↓ 3 callers
Method
diff
(String s,String start)
Week 03/id_693/practise/LeetCode_433_693.java:46
↓ 3 callers
Method
diff
(String s, String start)
Week 03/id_593/LeetCode_433_593.java:117
↓ 3 callers
Method
distance
priority distance @return
Week 06/id_273/LeetCode_773_273.java:115
↓ 3 callers
Function
find
(i)
Week 06/id_533/LeetCode_130.js:48
↓ 3 callers
Method
find
(self, x)
Week 06/id_298/number-of-islands.py:34
↓ 3 callers
Function
findCircleNum
(M)
Week 06/id_533/LeetCode_547.js:7
↓ 3 callers
Method
findCircleNum
A和B是朋友,B和C是朋友,那么A和C也是朋友 DFS 使用visited数组表示用户是否被访问过 BFS 并查集 @param M @return
Week 06/id_363/LeetCode_547_363.java:55
↓ 3 callers
Method
findCircleNum2
并查集 初始化 如果i和j是好友,那么合并两个集合 求独立的集合的个数 @param M @return
Week 06/id_363/LeetCode_547_363.java:85
↓ 3 callers
Method
findCircleNum3
(int[][] M)
Week 06/id_363/LeetCode_547_363.java:103
↓ 3 callers
Method
findContentChildren
(int[] g, int[] s)
Week 03/id_588/LeetCode_455_588.java:9
↓ 3 callers
Method
findMin
(int[] nums)
Week 03/id_038/week-03-038/src/main/java/com/github/kylefeng/LeetCode_153_038.java:11
↓ 3 callers
Method
findNode
(char node)
Week 06/id_578/LeetCode_208_578.java:25
↓ 3 callers
Function
findParent
(node)
Week 06/id_258/LeetCode_547_258.js:22
↓ 3 callers
Method
get
(char ch)
Week 06/id_708/LeetCode_208_708.java:18
↓ 3 callers
Method
get
(char ch)
Week 06/id_568/LeetCode_208_568.java:21
↓ 3 callers
Method
get
(char ch)
Week 06/id_213/Trie.java:22
↓ 3 callers
Method
get
(char ch)
Week 06/id_218/LeetCode_212_218.java:103
↓ 3 callers
Method
get
(char ch)
Week 06/id_598/LeetCode_208_598.java:39
↓ 3 callers
Method
get
(char ch)
Week 06/id_698/LeetCode_212_698.java:28
↓ 3 callers
Method
get
(char ch)
Week 06/id_683/LeetCode_208_683.java:18
↓ 3 callers
Method
getFront
Get the front item from the deque.
Week 01/id_648/MyCircularDeque.java:50
↓ 3 callers
Method
getIndex
(char ch)
Week 06/id_708/LeetCode_208_708.java:10
↓ 3 callers
Method
getKey
(int i, int j)
Week 05/id_063/Leetcode_403_063_solution1.java:36
↓ 3 callers
Method
getRear
Get the last item from the deque.
Week 01/id_648/MyCircularDeque.java:56
↓ 3 callers
Function
hammingWeight
(n)
Week 07/id_533/LeetCode_191.js:8
↓ 3 callers
Method
hasNode
(char node)
Week 06/id_578/LeetCode_208_578.java:21
↓ 3 callers
Method
insert
Inserts a word into the trie.
Week 06/id_363/LeetCode_208_363.java:34
↓ 3 callers
Method
insertFront
Adds an item at the front of Deque. Return true if the operation is successful.
Week 01/id_038/week-01-038/src/main/java/com/github/kylefeng/week01/LeetCode_641_038.java:66
↓ 3 callers
Method
insertLast
Adds an item at the rear of Deque. Return true if the operation is successful.
Week 01/id_588/LeetCode_641_588.java:37
↓ 3 callers
Method
isChar
(char ch)
Week 08/id_063/Leetcode_58_063.java:2
↓ 3 callers
Method
isFull
Checks whether the circular deque is full or not.
Week 01/id_113/LeetCode641.py:72
↓ 3 callers
Method
isPerfectSquare
(int num)
Week 03/id_693/practise/LeetCode_367_693.java:47
↓ 3 callers
Function
isPowerOfTwo
(n)
Week 07/id_533/LeetCode_231.js:7
↓ 3 callers
Function
isValidSudoku
(board)
Week 06/id_533/LeetCode_36.js:7
↓ 3 callers
Method
ladderLength
(String beginWord, String endWord, List<String> wordList)
Week 03/id_693/LeetCode_127_693.java:14
← previous
next →
201–300 of 7,451, ranked by callers