MCPcopy Create free account

hub / github.com/ctfu/Leetcode / functions

Functions771 in github.com/ctfu/Leetcode

MethodshortestWordDistance
(String[] words, String word1, String word2)
algorithm/shortestWordDistanceIII.java:3
MethodshouldPrintMessage
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
Methodshuffle
Returns a random shuffling of the array.
algorithm/ShuffleAnArray.java:11
MethodsimplifyPath
(String path)
algorithm/simplifyPath.java:5
MethodsingleNumber
(int[] nums)
algorithm/singleNumber.java:4
MethodsingleNumber
(int[] nums)
algorithm/singleNumberII.java:8
MethodsingleNumber
(int[] nums)
algorithm/singleNumberIII.java:10
MethodsmallestFromLeaf
(TreeNode root)
algorithm/smallestStringStartingFromLeaf.java:12
MethodsmallestRange
(List<List<Integer>> nums)
algorithm/smallestRange.java:6
Methodsolve
(char[][] board)
algorithm/surroundedRegions.java:5
MethodsolveEquation
(String equation)
algorithm/sloveTheEquation.java:3
MethodsolveNQueens
(int n)
algorithm/N-Queens.java:2
MethodsolveSudoku
(char[][] board)
algorithm/sudokuSolver.java:3
MethodsortColors
(int[] nums)
algorithm/sortColor.java:5
MethodsortList
(ListNode head)
algorithm/sortList.java:4
MethodsortedArrayToBST
(int[] nums)
algorithm/convertSortedArrayToBST.java:3
MethodsortedListToBST
(ListNode head)
algorithm/convertSortedListToBST.java:3
MethodspiralOrder
(int[][] matrix)
algorithm/SpiralMatrix.java:3
Methodstr2tree
(String s)
algorithm/constructBinaryTreeFromString.java:3
MethodstrStr
(String haystack, String needle)
algorithm/implementstrStr.java:2
MethodstrangePrinter
(String s)
algorithm/strangePrinter.java:11
Methodstring
(consists of lowercase letters only)
algorithm/longestSubstringWithAtLeastKRepeatings.java:1
MethodstrobogrammaticInRange
(String low, String high)
algorithm/strobogrammaticNumberIII.java:4
MethodsubarraySum
(int[] nums, int k)
algorithm/subarraySumEqualsK.java:6
MethodsumNumbers
(TreeNode root)
algorithm/sumRootToLeafNumbers.java:23
MethodsumOfLeftLeaves
(TreeNode root)
algorithm/sumOfLeftLeaves.java:16
MethodsumRange
(int i, int j)
algorithm/rangeSumQuery.java:16
MethodsumRange
(int i, int j)
algorithm/rangeSumQuery-mutable.java:29
MethodsumRegion
(int row1, int col1, int row2, int col2)
algorithm/rangeSumQuery2D-immutable.java:16
MethodsumRootToLeaf
(TreeNode root)
algorithm/sumOfRootToLeafBinaryNumber.java:16
MethodsummaryRanges
(int[] nums)
algorithm/summaryRange.java:3
MethodswapPairs
(ListNode head)
algorithm/swapNodesInPairs.java:10
MethodthirdMax
(int[] nums)
algorithm/thirdMaximumNumber.java:3
MethodthreeSum
(int[] nums)
algorithm/3Sum.java:21
MethodthreeSumClosest
(int[] nums, int target)
algorithm/3SumClosest.java:13
MethodthreeSumSmaller
(int[] nums, int target)
algorithm/3SumSmaller.java:15
MethodtitleToNumber
(String s)
algorithm/excelSheetColumnNumber.java:3
MethodtoHex
(int num)
algorithm/convertANumberToHex.java:9
Methodtop
()
algorithm/minStack.java:26
Methodtop
()
algorithm/implementStackUsingQueue.java:18
MethodtopKFrequent
(int[] nums, int k)
algorithm/topKFrequentElements.java:3
MethodtrailingZeroes
(int n)
algorithm/factorialTrailingZeroes.java:5
Methodtrap
(int[] height)
algorithm/trappingRainWater.java:6
MethodtrapRainWater
(int[][] heightMap)
algorithm/trappingWaterII.java:3
Methodtree2str
(TreeNode t)
algorithm/constructStringFromBinaryTree.java:9
MethodtrimBST
(TreeNode root, int L, int R)
algorithm/trimBinarySearchTree.java:11
MethodtwoSum
(int[] nums, int target)
algorithm/2Sum.java:18
MethodtwoSum
(int[] numbers, int target)
algorithm/2SumII.java:18
Methodunfollow
Follower unfollows a followee. If the operation is invalid, it should be a no-op.
algorithm/designTwitter.java:55
Methodunfollow
(int id)
algorithm/designTwitter.java:75
MethoduniquePaths
(int m, int n)
algorithm/uniquePath.java:7
MethoduniquePathsWithObstacles
(int[][] obstacleGrid)
algorithm/uniquePathII.java:5
Methodupdate
(int i, int val)
algorithm/rangeSumQuery-mutable.java:13
MethodupdateBoard
(char[][] board, int[] click)
algorithm/mineSweeper.java:4
MethodupdateMatrix
(List<List<Integer>> matrix)
algorithm/01Matrix.java:34
MethodupsideDownBinaryTree
(TreeNode root)
algorithm/binaryTreeUpsideDown.java:48
MethodvalidIPAddress
(String IP)
algorithm/validIPAddress.java:10
MethodvalidSquare
(int[] p1, int[] p2, int[] p3, int[] p4)
algorithm/validSquare.java:3
MethodvalidTree
(int n, int[][] edges)
algorithm/graphValidTree.java:5
MethodvalidWordAbbreviation
(String word, String abbr)
algorithm/wordAbbreviation.java:5
MethodvalidWordSquare
(List<String> words)
algorithm/validWordSquare.java:11
MethodverifyPreorder
(int[] preorder)
algorithm/verifyPreorderSequenceinBST.java:7
MethodverticalOrder
(TreeNode root)
algorithm/binaryTreeVerticalOrderTraversal.java:77
MethodwallsAndGates
(int[][] rooms)
algorithm/wallsAndGates.java:2
MethodwidthOfBinaryTree
(TreeNode root)
algorithm/maximumWidthOfBinaryTree.java:4
MethodwiggleSort
(int[] nums)
algorithm/wiggleSort.java:3
MethodwiggleSort
(int[] nums)
algorithm/wiggleSortII.java:3
MethodwordBreak
(String s, List<String> wordDict)
algorithm/wordBreak.java:9
MethodwordBreak
(String s, List<String> wordDict)
algorithm/wordBreakII.java:5
MethodwordPattern
(String pattern, String str)
algorithm/wordPattern.java:5
MethodzigzagLevelOrder
(TreeNode root)
algorithm/binaryTreeZigZagOrderTraversal.java:20
← previous701–771 of 771, ranked by callers