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
Method
isAnagram22
(String s, String t)
Week 02/id_416/LeetCode_242_416.java:80
Method
isAnagram23
(String s, String t)
Week 02/id_716/LeetCode_242_716.java:63
Method
isAnagram2_1
(self, s, t)
Week 02/id_251/LeetCode_242_251.py:44
Method
isAnagram2_2
(self, s, t)
Week 02/id_251/LeetCode_242_251.py:53
Method
isAnagram2_3
(self, s, t)
Week 02/id_251/LeetCode_242_251.py:62
Method
isAnagram2_4
(self, s, t)
Week 02/id_251/LeetCode_242_251.py:77
Method
isAnagram3
(self, s, t)
Week 02/id_091/LeetCode_242_091.py:22
Method
isAnagram3
思路: 先用计数器表计算 s,然后用 t 减少计数器表中的每个字母的计数器。如果在任何时候计数器低于零, 我们知道 t 包含一个不在 s 中的额外字母,并立即返回 FALSE。 https://leetcode-cn.com/problems/valid-anagram/solution/you-x
Week 02/id_501/week02/ValidAnagram.java:88
Method
isAnagram3
�ⷨ3����ϣ���ⷨ2,�ⷨ2�����ƽⷨ ʱ�临�Ӷȣ�O(n) �ռ临�Ӷȣ�O(1) *******/
Week 02/id_536/leetcode_242_536.cpp:49
Method
isAnagram3
第一次循环计数 s 字符串,第二次循环以减法计数 t 字符串,如果出现小于 0,则表示出现不同字符
Week 02/id_241/LeetCode_242_241.java:38
Method
isAnagramHash
info Success: Runtime:34 ms,faster than 21.61% of Java online submissions. Memory Usage:38.4 MB, less than 90.83% of Java online submissions.
Week 02/id_721/LeetCode_242_721.java:34
Function
isAnagram_1
(s, t)
Week 02/id_246/LeetCode_242_246.py:24
Function
isAnagram_2
(s, t)
Week 02/id_246/LeetCode_242_246.py:29
Method
isAnagram_Hash
判断一个两个字符串是否是字母异位词,用Hash方式 思路:利用ASCII码表,采用26长度的数组,拆解字符串病保存字符串中每个字符出现的个数 小技巧:保存个数时,用一个字符串增加,另一个字符串减去的方式, 如果这个字符在两个字符串中出现的个数各自相同,那么个数为0 @param s
Week 02/id_306/Hash_Anagram.java:35
Method
isAnagram_Hash2
没想到的。。。记录下 很巧妙 思路:同上一种方式,但是在拆解第二个字符串时直接计算是不是0 @param s @param t @return
Week 02/id_306/Hash_Anagram.java:62
Method
isAngramCollections
(self, s: str, t: str)
Week 02/id_636/LeetCode_242_636.py:89
Method
isAngramMap
(self, s: str, t: str)
Week 02/id_636/LeetCode_242_636.py:20
Method
isAngramMapUpdate
(self, s: str, t: str)
Week 02/id_636/LeetCode_242_636.py:50
Method
isConnected
(int p, int q)
Week 06/id_306/FriendCircles.java:63
Method
isConnected
(int node1, int node2)
Week 06/id_161/SurroundUnion.java:28
Method
isEmpty
()
Week 06/id_716/LeetCode_212_716.java:147
Method
isEmpty
Week 01/id_166/MyCircularDeque.hpp:41
Method
isEmpty
Checks whether the circular deque is empty or not.
Week 01/id_596/LeetCode_641_596.java:79
Method
isEmpty
Checks whether the circular deque is empty or not.
Week 01/id_416/LeetCode_641_416.java:142
Method
isEmpty
Checks whether the circular deque is empty or not. :rtype: bool
Week 01/id_731/LeetCode_641_731.py:65
Method
isEmpty
Week 01/id_651/LeetCode_641_651.cpp:70
Method
isEmpty
Checks whether the circular deque is empty or not. */
Week 01/id_586/641-design-circular-deque.cc:70
Method
isEmpty
Checks whether the circular deque is empty or not. :rtype: bool
Week 01/id_116/[641]设计循环双端队列.py:113
Method
isEmpty
Checks whether the circular deque is empty or not.
Week 01/id_766/LeetCode_641_766.java:93
Method
isEmpty
Checks whether the circular deque is empty or not. */
Week 01/id_151/LeetCode_641_151.cpp:64
Method
isEmpty
Checks whether the circular deque is empty or not.
Week 01/id_041/MyCircularDeque.java:82
Method
isEndWord
()
Week 06/id_006/LeetCode_208_006.java:26
Method
isEndWord
()
Week 06/id_006/LeetCode_212_006.java:37
Method
isFull
Week 01/id_166/MyCircularDeque.hpp:43
Method
isFull
Checks whether the circular deque is full or not.
Week 01/id_596/LeetCode_641_596.java:84
Method
isFull
()
Week 01/id_276/DisignCicularDeque.java:46
Method
isFull
Checks whether the circular deque is full or not. :rtype: bool
Week 01/id_731/LeetCode_641_731.py:72
Method
isFull
Week 01/id_651/LeetCode_641_651.cpp:74
Method
isFull
Checks whether the circular deque is full or not. */
Week 01/id_586/641-design-circular-deque.cc:75
Method
isFull
Checks whether the circular deque is full or not. :rtype: bool
Week 01/id_116/[641]设计循环双端队列.py:122
Method
isFull
Checks whether the circular deque is full or not.
Week 01/id_766/LeetCode_641_766.java:99
Method
isFull
Checks whether the circular deque is full or not. */
Week 01/id_151/LeetCode_641_151.cpp:69
Method
isFull
Checks whether the circular deque is full or not.
Week 01/id_641/Leetcode641.java:98
Method
isFull
Checks whether the circular deque is full or not.
Week 01/id_041/MyCircularDeque.java:91
Method
isFull
Checks whether the circular deque is full or not.
Week 02/id_021/algorithm/src/main/java/com/lqw/algorithm/array/queue/MyCircularDeque.java:127
Function
isIsomorphic
(s string, t string)
Week 08/id_011/isomorphic-strings.go:3
Method
isIsomorphic
(self, s: str, t: str)
Week 08/id_406/Create Leetcode_205_406.py:2
Method
isIsomorphic
简单解法 字符串中,同一个位置的字符在本串中第一次出现的位置相同。我简单解释一下,本题判定为false有这些个情况,我们假设拿s串和t串作对比 1.s串中相同的字符,对应的t串中的字符并不相等 2.s串中不同的字符,对应的t串中的字符却是相等的 所以判断的关键点就是相同的字符要对应相同的字符,那么
Week 08/id_306/Isomorphic.java:24
Method
isIsomorphic
(String s, String t)
Week 08/id_086/LeetCode_205_086.java:5
Method
isIsomorphicHash
Hash 方法 @param s @param t @return
Week 08/id_306/Isomorphic.java:42
Function
isIsomorphic_1
(s, t)
Week 08/id_246/LeetCode_205_246.py:16
Function
isIsomorphic_2
(s, t)
Week 08/id_246/LeetCode_205_246.py:19
Function
isIsomorphic_3
(s, t)
Week 08/id_246/LeetCode_205_246.py:27
Function
isIsomorphic_4
(s, t)
Week 08/id_246/LeetCode_205_246.py:30
Function
isIsomorphic_5
( s, t)
Week 08/id_246/LeetCode_205_246.py:33
Method
isMatch
@param text @param pattern @return
Week 08/id_306/WildcardMatching.java:15
Method
isMatch
(String s, String p)
Week 08/id_306/RegularExpressionMatching.java:9
Method
isMatch
(String s, String p)
Week 08/id_436/Leetcode_44_436.java:2
Method
isMatch
(String s, String p)
Week 08/id_106/LeetCode_10_106.java:89
Method
isMatch
(String s, String p)
Week 08/id_241/LeetCode_10_241.java:8
Method
isMatch
Week 08/id_586/leetcode_10.cc:9
Method
isMatch
(String s, String p)
Week 08/id_296/LeetCode_44_296.java:9
Method
isMatch1
优化空间复杂度 https://leetcode-cn.com/problems/wildcard-matching/solution/xiang-xi-tong-su-de-si-lu-fen-xi-duo-jie-fa-by-w-9/ @param text @param pattern @re
Week 08/id_306/WildcardMatching.java:48
Function
isMatch_1
(s, p)
Week 08/id_246/LeetCode_44_246.py:25
Function
isMatch_2
(s, p)
Week 08/id_246/LeetCode_44_246.py:54
Function
isPalindrome
Week 08/id_586/leetcode_125.cc:2
Method
isPalindrome
:type s: str :rtype: bool
Week 07/id_101/[125]验证回文串.py:25
Method
isPalindrome
(int x)
Week 02/id_021/algorithm/leetcode/editor/cn/[9]回文数.java:32
Method
isParlindrome
two pointer
Week 07/id_101/[125]验证回文串.py:34
Method
isPerfectSquare
(int num)
Week 03/id_431/LeetCode_367_431.java:8
Method
isPerfectSquare
(int num)
Week 03/id_081/ValidPerfectSquare.java:6
Method
isPerfectSquare1
原解1:二分查找法 @author Shaobo.Qian @date 2019/11/3
Week 03/id_371/Leetcode_367_371.java:33
Method
isPerfectSquare1
(int num)
Week 03/id_716/LeetCode_367_716.java:7
Method
isPerfectSquare2
(int num)
Week 03/id_716/LeetCode_367_716.java:17
Method
isPerfectSquare3
(int num)
Week 03/id_716/LeetCode_367_716.java:37
Method
isPerfectSquare4
(int num)
Week 03/id_716/LeetCode_367_716.java:47
Function
isPowerOfTwo
(n int)
Week 07/id_011/power-of-two.go:3
Function
isPowerOfTwo
leetcode : https://leetcode-cn.com/problems/power-of-two/
Week 07/id_261/leetcode_231_261.go:3
Function
isPowerOfTwo
(n)
Week 07/id_336/LeetCode_336_231.js:9
Function
isPowerOfTwo
(n)
Week 07/id_256/LeetCode_231_256.js:12
Function
isPowerOfTwo
(n)
Week 07/id_181/Leetcode_231_181.js:7
Function
isPowerOfTwo
(n int)
Week 07/id_451/LeetCode_231_451.go:1
Function
isPowerOfTwo
(n int)
Week 07/id_631/LeetCode_231_631.go:1
Function
isPowerOfTwo
1.2 https://leetcode-cn.com/problems/power-of-two/
Week 07/id_071/LeetCode_231_071.go:4
Method
isPowerOfTwo
(int n)
Week 07/id_431/LeetCode_231_431.java:8
Method
isPowerOfTwo
(self, n: int)
Week 07/id_126/LeetCode_231_126.py:2
Method
isPowerOfTwo
(self, n: int)
Week 07/id_381/leetcode_231.py:2
Method
isPowerOfTwo
(self, n: int)
Week 07/id_556/LeetCode_231_556.py:2
Method
isPowerOfTwo
(int n)
Week 07/id_306/PowerOfTwo.java:8
Method
isPowerOfTwo
(int n)
Week 07/id_321/LeetCode_231_321.java:6
Method
isPowerOfTwo
(int n)
Week 07/id_666/LeetCode_231_666.java:2
Method
isPowerOfTwo
(int n)
Week 07/id_606/231.2-的幂.java:39
Method
isPowerOfTwo
题意:判断一个数字是否为2的次幂数
Week 07/id_721/LeetCode_231_721.java:13
Method
isPowerOfTwo
(int n)
Week 07/id_716/LeetCode_231_716.java:3
Method
isPowerOfTwo
(int n)
Week 07/id_756/[231]2的幂.java:2
Method
isPowerOfTwo
:type n: int :rtype: bool
Week 07/id_251/LeetCode_231_251.py:29
Method
isPowerOfTwo
:type n: int :rtype: bool
Week 07/id_251/LeetCode_231_251.py:41
Method
isPowerOfTwo
(self, n: int)
Week 07/id_176/LeetCode_231_176.py:2
Method
isPowerOfTwo
(int n)
Week 07/id_696/LeetCode_241_696.java:4
Method
isPowerOfTwo
(int n)
Week 07/id_046/LeetCode_231_046.java:3
← previous
next →
3,601–3,700 of 6,280, ranked by callers