Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ctfu/Leetcode
/ functions
Functions
771 in github.com/ctfu/Leetcode
⨍
Functions
771
◇
Types & classes
491
Method
isUnique
(String word)
algorithm/uniqueWordAbbreviation.java:19
Method
isValid
(String code)
algorithm/tagValidator.java:4
Method
isValid
(String s)
algorithm/validParentheses.java:16
Method
isValidBST
(TreeNode root)
algorithm/validBinarySearchTree.java:11
Method
isValidSerialization
(String preorder)
algorithm/verifyPreorderSerializationOfBinaryTree.java:7
Method
isValidSudoku
(char[][] board)
algorithm/validSudoku.java:6
Method
isValidSudoku
(char[][] board)
algorithm/validSudoku.java:25
Method
islandPerimeter
(int[][] grid)
algorithm/islandPremiter.java:5
Method
judgeCircle
(String moves)
algorithm/judgeRouteCircle.java:5
Method
jump
(int[] nums)
algorithm/jumpGameII.java:3
Method
kSmallestPairs
(int[] nums1, int[] nums2, int k)
algorithm/findKPairsWithSmallestSum.java:3
Method
killProcess
(List<Integer> pid, List<Integer> ppid, int kill)
algorithm/killProcess.java:5
Method
kthSmallest
(TreeNode root, int k)
algorithm/kthSmallestElementBST.java:5
Method
kthSmallest
(int[][] matrix, int k)
algorithm/kthSmallestElementInSortedMatrix.java:6
Method
ladderLength
(String beginWord, String endWord, List<String> wordList)
algorithm/wordLadder.java:5
Method
largestBSTSubtree
(TreeNode root)
algorithm/largestBSTSubtree.java:4
Method
largestNumber
(int[] nums)
algorithm/largestNumber.java:5
Method
largestPalindrome
(int n)
algorithm/largestPalindromProduct.java:9
Method
largestRectangleArea
(int[] heights)
algorithm/largestRectangleInHistogram.java:3
Method
largestValues
(TreeNode root)
algorithm/findLargestValueEachTreeRow.java:3
Method
leastBricks
(List<List<Integer>> wall)
algorithm/brickWall.java:20
Method
leastInterval
(char[] tasks, int n)
algorithm/taskScheduler.java:4
Method
lengthLongestPath
(String input)
algorithm/longestAbsoluteFilePath.java:12
Method
lengthOfLIS
(int[] nums)
algorithm/longestIncreasingSubsequence.java:6
Method
lengthOfLastWord
(String s)
algorithm/lengthOfLastWord.java:2
Method
lengthOfLongestSubstring
(String s)
algorithm/longestSubstringWithoutRepeatingCharacters.java:22
Method
lengthOfLongestSubstringKDistinct
(String s, int k)
algorithm/longestSubstringWithAtMostKDistinct.java:16
Method
lengthOfLongestSubstringTwoDistinct
(String s)
algorithm/longestSubstringWithAtMost2DistinctCharacters.java:15
Method
letterCombinations
(String digits)
algorithm/letterCombinationPhoneNumber.java:2
Method
levelOrder
(TreeNode root)
algorithm/binaryTreeLevelOrderTraversal.java:20
Method
levelOrderBottom
(TreeNode root)
algorithm/binaryTreeLevelOrderTraversalII.java:20
Method
licenseKeyFormatting
(String S, int K)
algorithm/licenseKeyFormatting.java:4
Method
longestCommonPrefix
(String[] strs)
algorithm/longestCommonPrefix.java:4
Method
longestConsecutive
(TreeNode root)
algorithm/binaryTreeLongestConsecutiveSequence.java:42
Method
longestConsecutive
(TreeNode root)
algorithm/binaryTreeLongestConsecutiveSequenceII.java:31
Method
longestConsecutive
(int[] nums)
algorithm/longestConsecutiveSequence.java:4
Method
longestIncreasingPath
(int[][] matrix)
algorithm/longestIncreasingPathInMatrix.java:4
Method
longestPalindrome
(String s)
algorithm/longestPalindrom.java:7
Method
longestPalindrome
(String s)
algorithm/longestPalindromSubstring.java:4
Method
longestPalindromeSubseq
(String s)
algorithm/longestPalindromicSubsequence.java:6
Method
longestUnivaluePath
(TreeNode root)
algorithm/longestUnivaluePath.java:13
Method
longestValidParentheses
(String s)
algorithm/longestValidParenthesis.java:3
Method
longestWord
(String[] words)
algorithm/longestWordInDictionary.java:3
Method
lowestCommonAncestor
(TreeNode root, TreeNode p, TreeNode q)
algorithm/lowestCommonAncestor.java:11
Method
lowestCommonAncestor
(TreeNode root, TreeNode p, TreeNode q)
algorithm/lowestCommonAncestorInBST.java:11
Method
main
(String[] args)
algorithm/Knapsack.java:3
Method
majorityElement
(int[] nums)
algorithm/majorityElementII.java:5
Method
majorityElement
(int[] nums)
algorithm/majorityElement.java:3
Method
makesquare
(int[] nums)
algorithm/matchsticksToSquare.java:5
Method
markIsland
(char[][] grid, int x, int y)
algorithm/numberOfIsland.java:34
Method
maxArea
(int[] height)
algorithm/containerWithMostWater.java:8
Method
maxCount
(int m, int n, int[][] ops)
algorithm/rangeAdditionII.java:5
Method
maxDepth
(TreeNode root)
algorithm/maximumDepthOfBinaryTree.java:12
Method
maxDistance
(List<List<Integer>> arrays)
algorithm/maximumDistanceInArray.java:3
Method
maxKilledEnemies
(char[][] grid)
algorithm/bombEnemy.java:24
Method
maxPathSum
(TreeNode root)
algorithm/binaryTreeMaxmimumPathSum.java:35
Method
maxPoints
(Point[] points)
algorithm/maxPointsOnALine.java:7
Method
maxProduct
(int[] nums)
algorithm/maximumProductSubarray.java:5
Method
maxProfit
(int[] prices)
algorithm/bestTimeToBuyAndSellStockII.java:11
Method
maxProfit
(int[] prices, int fee)
algorithm/bestTimeToBuyAndSellStockWithTransactionFee.java:22
Method
maxProfit
(int k, int[] prices)
algorithm/bestTimeToBuyAndSellStockIV.java:11
Method
maxProfit
(int[] prices)
algorithm/bestTimeToBuyAndSellStockWithCoolDown.java:17
Method
maxProfit
(int[] prices)
algorithm/bestTimeToBuyAndSellStock.java:12
Method
maxProfit
(int[] prices)
algorithm/bestTimeToBuyAndSellStockIII.java:9
Method
maxRotateFunction
(int[] A)
algorithm/rotateFunction.java:24
Method
maxSlidingWindow
(int[] nums, int k)
algorithm/slidingWindowMaximum.java:4
Method
maxSubArray
(int[] nums)
algorithm/maximumSubarray.java:7
Method
maxSubArrayLen
(int[] nums, int k)
algorithm/maximumSizeSubarraySumEqualsK.java:6
Method
maximalRectangle
(char[][] matrix)
algorithm/maximalRectangle.java:4
Method
maximalSquare
(char[][] matrix)
algorithm/maximalSquare.java:8
Method
maximumGap
(int[] nums)
algorithm/maximumGap.java:5
Method
maximumProduct
(int[] nums)
algorithm/maximumProductOfThreeNumber.java:7
Method
medianSlidingWindow
(int[] nums, int k)
algorithm/slidingWindowMedian.java:5
Method
merge
(List<Interval> intervals)
algorithm/mergeInterval.java:12
Method
merge
(int[] nums1, int m, int[] nums2, int n)
algorithm/mergeSortedArray.java:2
Method
mergeKLists
(ListNode[] lists)
algorithm/mergeKLists.java:3
Method
mergeTrees
(TreeNode t1, TreeNode t2)
algorithm/mergeTwoBinaryTrees.java:6
Method
mergeTwoLists
(ListNode l1, ListNode l2)
algorithm/mergeTwoSortedLists.java:10
Method
minCost
(int[][] costs)
algorithm/paintHouse.java:10
Method
minCostII
(int[][] costs)
algorithm/paintHouseII.java:6
Method
minCut
(String s)
algorithm/palindromPartitionII.java:6
Method
minDepth
(TreeNode root)
algorithm/minimumDepthOfBinaryTree.java:21
Method
minDistance
(String word1, String word2)
algorithm/editDistance.java:3
Method
minMeetingRooms
(Interval[] intervals)
algorithm/meetingRoomsII.java:5
Method
minMoves
(int[] nums)
algorithm/minimumMovesToEqualArrayElements.java:5
Method
minMoves2
(int[] nums)
algorithm/minimumMovesToEqualArrayElementsII.java:5
Method
minMutation
(String start, String end, String[] bank)
algorithm/minimumGeneticMutation.java:6
Method
minPathSum
(int[][] grid)
algorithm/minimumPathSum.java:5
Method
minSubArrayLen
(int s, int[] nums)
algorithm/minimumSizeSubarraySum.java:5
Method
minTotalDistance
(int[][] grid)
algorithm/bestMeetingPoint.java:11
Method
minWindow
(String s, String t)
algorithm/minimumWindowSubstring.java:1
Method
minimumTotal
(List<List<Integer>> triangle)
algorithm/triangle.java:6
Method
missingNumber
(int[] nums)
algorithm/missingNumber.java:3
Method
move
Player {player} makes a move at ({row}, {col}). @param row The row of the board. @param col The column of the board. @param pl
algorithm/designTicTacToe.java:27
Method
moveZeroes
(int[] nums)
algorithm/moveZeros.java:3
Method
multiply
(int[][] A, int[][] B)
algorithm/sparseMatrixMultiplication.java:2
Method
multiply
(String num1, String num2)
algorithm/multiplyString.java:4
Method
myAtoi
(String str)
algorithm/stringToInteger.java:27
Method
myPow
(double x, int n)
algorithm/pow(x-n).java:2
Method
mySqrt
(int x)
algorithm/sqrt(x).java:3
← previous
next →
501–600 of 771, ranked by callers