MCPcopy Create free account

hub / github.com/SHY-Corp/LeetCode-Solutions / functions

Functions846 in github.com/SHY-Corp/LeetCode-Solutions

MethodinvertTree
(self, root: TreeNode)
Python/226. InvertBinaryTree.py:8
MethodisAlienSorted
(self, words: List[str], order: str)
Python/953. VerifyingAnAlienDictionary.py:9
MethodisAlienSorted
C++/953. VerifyingAnAlienDictionary.cpp:10
MethodisAnagram
C++/242.ValidAnagram.cpp:8
MethodisArmstrong
C++/1134.ArmstrongNumber.cpp:13
MethodisBipartite
(self, graph: List[List[int]])
Python/785. IsGraphBipartite.py:16
MethodisBipartite
C++/785.IsGraphBipartite.cpp:33
MethodisHappy
C++/202. HappyNumber.cpp:33
MethodisIsomorphic
(self, s1: str, s2: str)
Python/205.IsomorphicStrings.py:4
MethodisLongPressedName
C++/925. Long Pressed Name.cpp:9
MethodisMajority
Function to check if the candidate occurs more than n/2 times */
C++/169. Majority_Element.cpp:34
MethodisMatch
(self,s ,p)
Python/44. WildcardMatching.py:13
MethodisMatch
C++/44. WildcardMatching.cpp:59
MethodisMonotonic
C++/896. MonotonicArray.cpp:3
MethodisNumber
C++/65. ValidNumber.cpp:4
FunctionisPalindrome
C++/125. ValidPalindrome.cpp:4
MethodisPalindrome
:type x: int :rtype: bool
Python/9.Palindrome Number.py:4
MethodisPalindrome
C++/9. Palindrome Number.cpp:6
MethodisPathCrossing
C++/1496.PathCrossing.cpp:6
MethodisPerfectSquare
(self, num)
Python/367.ValidPerfectSquare.py:3
MethodisPerfectSquare
C++/367. ValidPerfectSquare.cpp:37
MethodisPowerOfFour
C++/342.PowerOfFour.cpp:5
MethodisPowerOfThree
C++/326. PowerOfThree.cpp:12
MethodisPowerOfThree01
C++/326. PowerOfThree.cpp:38
MethodisPowerOfThree02
C++/326. PowerOfThree.cpp:24
MethodisPowerOfThree03
C++/326. PowerOfThree.cpp:20
MethodisPowerOfThree_loop
C++/326. PowerOfThree.cpp:44
MethodisPowerOfThree_recursive
C++/326. PowerOfThree.cpp:52
MethodisPowerOfTwo
C++/231. PowerOfTwo.cpp:22
MethodisRobotBounded
(String ins)
Java/1041. RobotBoundedInCircle.java:13
MethodisSafe
C++/36. ValidSudoku.cpp:25
MethodisScramble
C++/87. ScrambleString.cpp:34
MethodisSubsequence
C++/392. IsSubsequence.cpp:6
MethodisSubtree
(self, s: TreeNode, t: TreeNode)
Python/572. SubtreeOfAnotherTree.py:49
MethodisSubtree
(TreeNode s, TreeNode t)
Java/572. SubtreeOfAnotherTree.java:22
MethodisSymmetric
C++/101. SymmetricTree.cpp:42
MethodisSymmetric
(TreeNode root)
Java/101. SymmetricTree.java:45
MethodisToeplitzMatrix
(self, matrix: List[List[int]])
Python/766. ToeplitzMatrix.py:5
MethodisToeplitzMatrix
C++/766. Toeplitz Matrix.cpp:11
MethodisUgly
(self, num)
Python/263.UglyNumbers.py:3
MethodisValid
(self, s)
Python/20. ValidParentheses.py:17
MethodisValid
(r, c)
Python/51. N-Queens.py:48
MethodisValid
C++/20. ValidParenthesis.cpp:56
MethodisValid
(String s)
Java/20. ValidParentheses.java:54
MethodisValidSudoku
C++/36. ValidSudoku.cpp:5
Methodis_leaf
C++/543. DiameterOfBinaryTree.cpp:29
MethodjudgeSquareSum
C++/633. SumOfSquareNumbers.cpp:7
MethodkClosest
C++/973. KClosestPointstoOrigin.cpp:11
MethodkWeakestRows
C++/1337.TheKWeakestRowsInAMatrix.cpp:3
MethodkidsWithCandies
C++/1431. KidsWithTheGreatesNumberOfCandies.cpp:10
MethodkthFactor
C++/1492.kthfactor.cpp:69
MethodkthSmallest
:type root: TreeNode :type k: int :rtype: int
Python/230.KthSmallestElementinaBST.py:18
MethodkthSmallest
C++/230.KthSmallesElementInABST.cpp:41
MethodladderLength
C++/127. Word Ladder.cpp:17
MethodlargestDivisibleSubset
(self, nums: List[int])
Python/368. LargestDivisibleSubset.py:3
MethodlargestMultipleOfThree
C++/1363. LargestMultipleOfThree.cpp:53
MethodlargestNumber
C++/179.Largest Number.cpp:11
MethodlargestPerimeter
C++/976.LargestPerimeterTriangle.cpp:3
MethodlargestRectangleArea
C++/84. LargestRectangleInHistogram.cpp:6
MethodlargestRectangleArea
(int[] heights)
Java/84. LargestRectangleInHistogram.java:6
MethodlargestTimeFromDigits
C++/949. Largest Time for Given Digits.cpp:9
MethodlargestTriangleArea
C++/812. LargestTriangleArea.cpp:9
MethodlastStoneWeight
C++/1046. Last Stone Weight.cpp:18
MethodlastStoneWeightII
C++/1049. LastStoneWeightII.cpp:15
MethodlcaDeepestLeaves
C++/1123. Lowest Common Ancestor of Deepest Leaves.cpp:28
MethodleastInterval
C++/621. Task Scheduler.cpp:20
MethodleastInterval
(char[] tasks, int n)
Java/621. Task Scheduler.java:2
Methodleave
C++/855. ExamRoom.cpp:79
MethodlemonadeChange
C++/860. LemonadeChange.cpp:12
MethodlengthOfLIS
C++/300. LongestIncreasingSubsequence.cpp:27
MethodlengthOfLastWord
(self, s: str)
Python/58. length_of_last_word.py:24
MethodletterCasePermutation
(String S)
Java/784.LetterCasePermutation.java:32
MethodletterCombinations
:type digits: str :rtype: List[str]
Python/17. LetterCombinationsOfAPhoneNumber.py:2
MethodletterCombinations
C++/17. LetterCombinationsOfAPhoneNumber.cpp:31
MethodlevelOrder
C++/102. BinaryTreeLevelOrderTraversal.cpp:39
MethodlevelOrderBottom
C++/107. BinaryTreeLevelOrderTraversalII.cpp:50
MethodlongestCommonPrefix
:type strs: List[str] :rtype: str
Python/14. LongestCommonPrefix.py:6
MethodlongestCommonPrefix
C++/14. LongestCommonPrefix.cpp:8
MethodlongestCommonPrefix
(String[] strs)
Java/14. longestCommonPrefix.java:33
MethodlongestCommonSubsequence
(self, text1: str, text2: str)
Python/1143. LongestCommonSubsequence.py:38
MethodlongestConsecutive
C++/128. LongestConsecutiveSequence.cpp:15
MethodlongestMountain
C++/845. LongestMountainInArray.cpp:32
MethodlongestPalindrome
C++/5. LongestPalindromicSubstring.cpp:3
MethodlongestPalindrome
(String s)
Java/5.LongestPalindromicSubstring.java:11
MethodlongestPalindromeSubseq
(String s)
Java/516. Longest Palindromic Subsequence.java:22
MethodlongestSubstring
C++/395. Longest Substring with At Least K Repeating Characters.cpp:12
MethodlongestValidParentheses
C++/32. LongestValidParenthesis.cpp:7
MethodlongestWord
C++/720.LongestWordInDictionary.cpp:18
MethodlowestCommonAncestor
C++/235. Lowest Common Ancestor of a Binary Search Tree.cpp:14
MethodlowestCommonAncestor
C++/236. LowestCommonAncestorOfABinaryTree.cpp:26
Functionmain
Driver code
C++/225. Implement Stack Using Queues.cpp:68
Functionmain
Driver function
C++/3. LongestSubstringWithoutRepeatingCharacters.cpp:83
Functionmain
C++/10. Regular Expression Matching.cpp:46
Functionmain
C++/7. Reverse_Integer.cpp:22
Functionmain
C++/anagram.cpp:4
Functionmain
Driver code
C++/232. Implement Queue Using Stacks.cpp:47
Functionmain
Driver code
C++/1365. SmallestNumberThanCurrentNumber.cpp:64
Functionmain
C++/49. Group_Anagrams.cpp:42
Functionmain
C++/103. BinaryTreeZigzagLevelOrderTraversal.cpp:54
Functionmain
C++/1329.SortTheMatrixDiagonally.cpp:43
← previousnext →401–500 of 846, ranked by callers