MCPcopy Create free account

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

Functions6,280 in github.com/algorithm004-01/algorithm004-01

MethodisAnagram22
(String s, String t)
Week 02/id_416/LeetCode_242_416.java:80
MethodisAnagram23
(String s, String t)
Week 02/id_716/LeetCode_242_716.java:63
MethodisAnagram2_1
(self, s, t)
Week 02/id_251/LeetCode_242_251.py:44
MethodisAnagram2_2
(self, s, t)
Week 02/id_251/LeetCode_242_251.py:53
MethodisAnagram2_3
(self, s, t)
Week 02/id_251/LeetCode_242_251.py:62
MethodisAnagram2_4
(self, s, t)
Week 02/id_251/LeetCode_242_251.py:77
MethodisAnagram3
(self, s, t)
Week 02/id_091/LeetCode_242_091.py:22
MethodisAnagram3
思路: 先用计数器表计算 s,然后用 t 减少计数器表中的每个字母的计数器。如果在任何时候计数器低于零, 我们知道 t 包含一个不在 s 中的额外字母,并立即返回 FALSE。 https://leetcode-cn.com/problems/valid-anagram/solution/you-x
Week 02/id_501/week02/ValidAnagram.java:88
MethodisAnagram3
�ⷨ3����ϣ���ⷨ2,�ⷨ2�����ƽⷨ ʱ�临�Ӷȣ�O(n) �ռ临�Ӷȣ�O(1) *******/
Week 02/id_536/leetcode_242_536.cpp:49
MethodisAnagram3
第一次循环计数 s 字符串,第二次循环以减法计数 t 字符串,如果出现小于 0,则表示出现不同字符
Week 02/id_241/LeetCode_242_241.java:38
MethodisAnagramHash
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
FunctionisAnagram_1
(s, t)
Week 02/id_246/LeetCode_242_246.py:24
FunctionisAnagram_2
(s, t)
Week 02/id_246/LeetCode_242_246.py:29
MethodisAnagram_Hash
判断一个两个字符串是否是字母异位词,用Hash方式 思路:利用ASCII码表,采用26长度的数组,拆解字符串病保存字符串中每个字符出现的个数 小技巧:保存个数时,用一个字符串增加,另一个字符串减去的方式, 如果这个字符在两个字符串中出现的个数各自相同,那么个数为0 @param s
Week 02/id_306/Hash_Anagram.java:35
MethodisAnagram_Hash2
没想到的。。。记录下 很巧妙 思路:同上一种方式,但是在拆解第二个字符串时直接计算是不是0 @param s @param t @return
Week 02/id_306/Hash_Anagram.java:62
MethodisAngramCollections
(self, s: str, t: str)
Week 02/id_636/LeetCode_242_636.py:89
MethodisAngramMap
(self, s: str, t: str)
Week 02/id_636/LeetCode_242_636.py:20
MethodisAngramMapUpdate
(self, s: str, t: str)
Week 02/id_636/LeetCode_242_636.py:50
MethodisConnected
(int p, int q)
Week 06/id_306/FriendCircles.java:63
MethodisConnected
(int node1, int node2)
Week 06/id_161/SurroundUnion.java:28
MethodisEmpty
()
Week 06/id_716/LeetCode_212_716.java:147
MethodisEmpty
Week 01/id_166/MyCircularDeque.hpp:41
MethodisEmpty
Checks whether the circular deque is empty or not.
Week 01/id_596/LeetCode_641_596.java:79
MethodisEmpty
Checks whether the circular deque is empty or not.
Week 01/id_416/LeetCode_641_416.java:142
MethodisEmpty
Checks whether the circular deque is empty or not. :rtype: bool
Week 01/id_731/LeetCode_641_731.py:65
MethodisEmpty
Week 01/id_651/LeetCode_641_651.cpp:70
MethodisEmpty
Checks whether the circular deque is empty or not. */
Week 01/id_586/641-design-circular-deque.cc:70
MethodisEmpty
Checks whether the circular deque is empty or not. :rtype: bool
Week 01/id_116/[641]设计循环双端队列.py:113
MethodisEmpty
Checks whether the circular deque is empty or not.
Week 01/id_766/LeetCode_641_766.java:93
MethodisEmpty
Checks whether the circular deque is empty or not. */
Week 01/id_151/LeetCode_641_151.cpp:64
MethodisEmpty
Checks whether the circular deque is empty or not.
Week 01/id_041/MyCircularDeque.java:82
MethodisEndWord
()
Week 06/id_006/LeetCode_208_006.java:26
MethodisEndWord
()
Week 06/id_006/LeetCode_212_006.java:37
MethodisFull
Week 01/id_166/MyCircularDeque.hpp:43
MethodisFull
Checks whether the circular deque is full or not.
Week 01/id_596/LeetCode_641_596.java:84
MethodisFull
()
Week 01/id_276/DisignCicularDeque.java:46
MethodisFull
Checks whether the circular deque is full or not. :rtype: bool
Week 01/id_731/LeetCode_641_731.py:72
MethodisFull
Week 01/id_651/LeetCode_641_651.cpp:74
MethodisFull
Checks whether the circular deque is full or not. */
Week 01/id_586/641-design-circular-deque.cc:75
MethodisFull
Checks whether the circular deque is full or not. :rtype: bool
Week 01/id_116/[641]设计循环双端队列.py:122
MethodisFull
Checks whether the circular deque is full or not.
Week 01/id_766/LeetCode_641_766.java:99
MethodisFull
Checks whether the circular deque is full or not. */
Week 01/id_151/LeetCode_641_151.cpp:69
MethodisFull
Checks whether the circular deque is full or not.
Week 01/id_641/Leetcode641.java:98
MethodisFull
Checks whether the circular deque is full or not.
Week 01/id_041/MyCircularDeque.java:91
MethodisFull
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
FunctionisIsomorphic
(s string, t string)
Week 08/id_011/isomorphic-strings.go:3
MethodisIsomorphic
(self, s: str, t: str)
Week 08/id_406/Create Leetcode_205_406.py:2
MethodisIsomorphic
简单解法 字符串中,同一个位置的字符在本串中第一次出现的位置相同。我简单解释一下,本题判定为false有这些个情况,我们假设拿s串和t串作对比 1.s串中相同的字符,对应的t串中的字符并不相等 2.s串中不同的字符,对应的t串中的字符却是相等的 所以判断的关键点就是相同的字符要对应相同的字符,那么
Week 08/id_306/Isomorphic.java:24
MethodisIsomorphic
(String s, String t)
Week 08/id_086/LeetCode_205_086.java:5
MethodisIsomorphicHash
Hash 方法 @param s @param t @return
Week 08/id_306/Isomorphic.java:42
FunctionisIsomorphic_1
(s, t)
Week 08/id_246/LeetCode_205_246.py:16
FunctionisIsomorphic_2
(s, t)
Week 08/id_246/LeetCode_205_246.py:19
FunctionisIsomorphic_3
(s, t)
Week 08/id_246/LeetCode_205_246.py:27
FunctionisIsomorphic_4
(s, t)
Week 08/id_246/LeetCode_205_246.py:30
FunctionisIsomorphic_5
( s, t)
Week 08/id_246/LeetCode_205_246.py:33
MethodisMatch
@param text @param pattern @return
Week 08/id_306/WildcardMatching.java:15
MethodisMatch
(String s, String p)
Week 08/id_306/RegularExpressionMatching.java:9
MethodisMatch
(String s, String p)
Week 08/id_436/Leetcode_44_436.java:2
MethodisMatch
(String s, String p)
Week 08/id_106/LeetCode_10_106.java:89
MethodisMatch
(String s, String p)
Week 08/id_241/LeetCode_10_241.java:8
MethodisMatch
Week 08/id_586/leetcode_10.cc:9
MethodisMatch
(String s, String p)
Week 08/id_296/LeetCode_44_296.java:9
MethodisMatch1
优化空间复杂度 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
FunctionisMatch_1
(s, p)
Week 08/id_246/LeetCode_44_246.py:25
FunctionisMatch_2
(s, p)
Week 08/id_246/LeetCode_44_246.py:54
FunctionisPalindrome
Week 08/id_586/leetcode_125.cc:2
MethodisPalindrome
:type s: str :rtype: bool
Week 07/id_101/[125]验证回文串.py:25
MethodisPalindrome
(int x)
Week 02/id_021/algorithm/leetcode/editor/cn/[9]回文数.java:32
MethodisParlindrome
two pointer
Week 07/id_101/[125]验证回文串.py:34
MethodisPerfectSquare
(int num)
Week 03/id_431/LeetCode_367_431.java:8
MethodisPerfectSquare
(int num)
Week 03/id_081/ValidPerfectSquare.java:6
MethodisPerfectSquare1
原解1:二分查找法 @author Shaobo.Qian @date 2019/11/3
Week 03/id_371/Leetcode_367_371.java:33
MethodisPerfectSquare1
(int num)
Week 03/id_716/LeetCode_367_716.java:7
MethodisPerfectSquare2
(int num)
Week 03/id_716/LeetCode_367_716.java:17
MethodisPerfectSquare3
(int num)
Week 03/id_716/LeetCode_367_716.java:37
MethodisPerfectSquare4
(int num)
Week 03/id_716/LeetCode_367_716.java:47
FunctionisPowerOfTwo
(n int)
Week 07/id_011/power-of-two.go:3
FunctionisPowerOfTwo
leetcode : https://leetcode-cn.com/problems/power-of-two/
Week 07/id_261/leetcode_231_261.go:3
FunctionisPowerOfTwo
(n)
Week 07/id_336/LeetCode_336_231.js:9
FunctionisPowerOfTwo
(n)
Week 07/id_256/LeetCode_231_256.js:12
FunctionisPowerOfTwo
(n)
Week 07/id_181/Leetcode_231_181.js:7
FunctionisPowerOfTwo
(n int)
Week 07/id_451/LeetCode_231_451.go:1
FunctionisPowerOfTwo
(n int)
Week 07/id_631/LeetCode_231_631.go:1
FunctionisPowerOfTwo
1.2 https://leetcode-cn.com/problems/power-of-two/
Week 07/id_071/LeetCode_231_071.go:4
MethodisPowerOfTwo
(int n)
Week 07/id_431/LeetCode_231_431.java:8
MethodisPowerOfTwo
(self, n: int)
Week 07/id_126/LeetCode_231_126.py:2
MethodisPowerOfTwo
(self, n: int)
Week 07/id_381/leetcode_231.py:2
MethodisPowerOfTwo
(self, n: int)
Week 07/id_556/LeetCode_231_556.py:2
MethodisPowerOfTwo
(int n)
Week 07/id_306/PowerOfTwo.java:8
MethodisPowerOfTwo
(int n)
Week 07/id_321/LeetCode_231_321.java:6
MethodisPowerOfTwo
(int n)
Week 07/id_666/LeetCode_231_666.java:2
MethodisPowerOfTwo
(int n)
Week 07/id_606/231.2-的幂.java:39
MethodisPowerOfTwo
题意:判断一个数字是否为2的次幂数
Week 07/id_721/LeetCode_231_721.java:13
MethodisPowerOfTwo
(int n)
Week 07/id_716/LeetCode_231_716.java:3
MethodisPowerOfTwo
(int n)
Week 07/id_756/[231]2的幂.java:2
MethodisPowerOfTwo
:type n: int :rtype: bool
Week 07/id_251/LeetCode_231_251.py:29
MethodisPowerOfTwo
:type n: int :rtype: bool
Week 07/id_251/LeetCode_231_251.py:41
MethodisPowerOfTwo
(self, n: int)
Week 07/id_176/LeetCode_231_176.py:2
MethodisPowerOfTwo
(int n)
Week 07/id_696/LeetCode_241_696.java:4
MethodisPowerOfTwo
(int n)
Week 07/id_046/LeetCode_231_046.java:3
← previousnext →3,601–3,700 of 6,280, ranked by callers