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
shortestWordDistance
(String[] words, String word1, String word2)
algorithm/shortestWordDistanceIII.java:3
Method
shouldPrintMessage
Returns true if the message should be printed in the given timestamp, otherwise returns false. If this method returns false, the message will
algorithm/loggerRateLimiter.java:12
Method
shuffle
Returns a random shuffling of the array.
algorithm/ShuffleAnArray.java:11
Method
simplifyPath
(String path)
algorithm/simplifyPath.java:5
Method
singleNumber
(int[] nums)
algorithm/singleNumber.java:4
Method
singleNumber
(int[] nums)
algorithm/singleNumberII.java:8
Method
singleNumber
(int[] nums)
algorithm/singleNumberIII.java:10
Method
smallestFromLeaf
(TreeNode root)
algorithm/smallestStringStartingFromLeaf.java:12
Method
smallestRange
(List<List<Integer>> nums)
algorithm/smallestRange.java:6
Method
solve
(char[][] board)
algorithm/surroundedRegions.java:5
Method
solveEquation
(String equation)
algorithm/sloveTheEquation.java:3
Method
solveNQueens
(int n)
algorithm/N-Queens.java:2
Method
solveSudoku
(char[][] board)
algorithm/sudokuSolver.java:3
Method
sortColors
(int[] nums)
algorithm/sortColor.java:5
Method
sortList
(ListNode head)
algorithm/sortList.java:4
Method
sortedArrayToBST
(int[] nums)
algorithm/convertSortedArrayToBST.java:3
Method
sortedListToBST
(ListNode head)
algorithm/convertSortedListToBST.java:3
Method
spiralOrder
(int[][] matrix)
algorithm/SpiralMatrix.java:3
Method
str2tree
(String s)
algorithm/constructBinaryTreeFromString.java:3
Method
strStr
(String haystack, String needle)
algorithm/implementstrStr.java:2
Method
strangePrinter
(String s)
algorithm/strangePrinter.java:11
Method
string
(consists of lowercase letters only)
algorithm/longestSubstringWithAtLeastKRepeatings.java:1
Method
strobogrammaticInRange
(String low, String high)
algorithm/strobogrammaticNumberIII.java:4
Method
subarraySum
(int[] nums, int k)
algorithm/subarraySumEqualsK.java:6
Method
sumNumbers
(TreeNode root)
algorithm/sumRootToLeafNumbers.java:23
Method
sumOfLeftLeaves
(TreeNode root)
algorithm/sumOfLeftLeaves.java:16
Method
sumRange
(int i, int j)
algorithm/rangeSumQuery.java:16
Method
sumRange
(int i, int j)
algorithm/rangeSumQuery-mutable.java:29
Method
sumRegion
(int row1, int col1, int row2, int col2)
algorithm/rangeSumQuery2D-immutable.java:16
Method
sumRootToLeaf
(TreeNode root)
algorithm/sumOfRootToLeafBinaryNumber.java:16
Method
summaryRanges
(int[] nums)
algorithm/summaryRange.java:3
Method
swapPairs
(ListNode head)
algorithm/swapNodesInPairs.java:10
Method
thirdMax
(int[] nums)
algorithm/thirdMaximumNumber.java:3
Method
threeSum
(int[] nums)
algorithm/3Sum.java:21
Method
threeSumClosest
(int[] nums, int target)
algorithm/3SumClosest.java:13
Method
threeSumSmaller
(int[] nums, int target)
algorithm/3SumSmaller.java:15
Method
titleToNumber
(String s)
algorithm/excelSheetColumnNumber.java:3
Method
toHex
(int num)
algorithm/convertANumberToHex.java:9
Method
top
()
algorithm/minStack.java:26
Method
top
()
algorithm/implementStackUsingQueue.java:18
Method
topKFrequent
(int[] nums, int k)
algorithm/topKFrequentElements.java:3
Method
trailingZeroes
(int n)
algorithm/factorialTrailingZeroes.java:5
Method
trap
(int[] height)
algorithm/trappingRainWater.java:6
Method
trapRainWater
(int[][] heightMap)
algorithm/trappingWaterII.java:3
Method
tree2str
(TreeNode t)
algorithm/constructStringFromBinaryTree.java:9
Method
trimBST
(TreeNode root, int L, int R)
algorithm/trimBinarySearchTree.java:11
Method
twoSum
(int[] nums, int target)
algorithm/2Sum.java:18
Method
twoSum
(int[] numbers, int target)
algorithm/2SumII.java:18
Method
unfollow
Follower unfollows a followee. If the operation is invalid, it should be a no-op.
algorithm/designTwitter.java:55
Method
unfollow
(int id)
algorithm/designTwitter.java:75
Method
uniquePaths
(int m, int n)
algorithm/uniquePath.java:7
Method
uniquePathsWithObstacles
(int[][] obstacleGrid)
algorithm/uniquePathII.java:5
Method
update
(int i, int val)
algorithm/rangeSumQuery-mutable.java:13
Method
updateBoard
(char[][] board, int[] click)
algorithm/mineSweeper.java:4
Method
updateMatrix
(List<List<Integer>> matrix)
algorithm/01Matrix.java:34
Method
upsideDownBinaryTree
(TreeNode root)
algorithm/binaryTreeUpsideDown.java:48
Method
validIPAddress
(String IP)
algorithm/validIPAddress.java:10
Method
validSquare
(int[] p1, int[] p2, int[] p3, int[] p4)
algorithm/validSquare.java:3
Method
validTree
(int n, int[][] edges)
algorithm/graphValidTree.java:5
Method
validWordAbbreviation
(String word, String abbr)
algorithm/wordAbbreviation.java:5
Method
validWordSquare
(List<String> words)
algorithm/validWordSquare.java:11
Method
verifyPreorder
(int[] preorder)
algorithm/verifyPreorderSequenceinBST.java:7
Method
verticalOrder
(TreeNode root)
algorithm/binaryTreeVerticalOrderTraversal.java:77
Method
wallsAndGates
(int[][] rooms)
algorithm/wallsAndGates.java:2
Method
widthOfBinaryTree
(TreeNode root)
algorithm/maximumWidthOfBinaryTree.java:4
Method
wiggleSort
(int[] nums)
algorithm/wiggleSort.java:3
Method
wiggleSort
(int[] nums)
algorithm/wiggleSortII.java:3
Method
wordBreak
(String s, List<String> wordDict)
algorithm/wordBreak.java:9
Method
wordBreak
(String s, List<String> wordDict)
algorithm/wordBreakII.java:5
Method
wordPattern
(String pattern, String str)
algorithm/wordPattern.java:5
Method
zigzagLevelOrder
(TreeNode root)
algorithm/binaryTreeZigZagOrderTraversal.java:20
← previous
701–771 of 771, ranked by callers