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
findRelativeRanks
(int[] nums)
algorithm/relativeRanks.java:3
Method
findRepeatedDnaSequences
(String s)
algorithm/repeatedDNASequence.java:2
Method
findRestaurant
(String[] list1, String[] list2)
algorithm/minimumIndexSumOfTwoList.java:3
Method
findRotateSteps
(String ring, String key)
algorithm/freedomTrail.java:4
Method
findShortestWay
(int[][] maze, int[] ball, int[] hole)
algorithm/mazeIII.java:3
Method
findStrobogrammatic
(int n)
algorithm/strobogrammaticNumberII.java:4
Method
findSubsequences
(int[] nums)
algorithm/increasingSubsequence.java:5
Method
findSubstring
(String s, String[] words)
algorithm/substringWithContatenationOfAllWords.java:2
Method
findSubstringInWraproundString
(String p)
algorithm/uniqueSubstringsInWrapparoundString.java:2
Method
findTarget
(TreeNode root, int k)
algorithm/2SumIV.java:32
Method
findTargetSumWays
(int[] nums, int S)
algorithm/targetSum.java:3
Method
findTheDifference
(String s, String t)
algorithm/findTheDifference.java:3
Method
findTilt
(TreeNode root)
algorithm/binaryTreeTilt.java:27
Method
findUnsortedSubarray
(int[] nums)
algorithm/shortestUnsortedContinuousSubarray.java:6
Method
findWords
(String[] words)
algorithm/keyboardRow.java:3
Method
findWords
(char[][] board, String[] words)
algorithm/wordSearchII.java:3
Method
firstBadVersion
(int n)
algorithm/firstBadVersion.java:5
Method
firstMissingPositive
(int[] nums)
algorithm/firstMissingPositive.java:7
Method
firstUniqChar
(String s)
algorithm/firstUniqueCharacterInAString.java:3
Method
fizzBuzz
(int n)
algorithm/fizzBuzz.java:2
Method
flatten
(TreeNode root)
algorithm/flattenBinaryTreeToLinkedList.java:11
Method
follow
Follower follows a followee. If the operation is invalid, it should be a no-op.
algorithm/designTwitter.java:44
Method
fourSum
(int[] nums, int target)
algorithm/4Sum.java:20
Method
fractionToDecimal
(int numerator, int denominator)
algorithm/fractionToRrcurringDecimal.java:5
Method
frequencySort
(String s)
algorithm/sortCharacterByFrequency.java:3
Method
fullJustify
(String[] words, int maxWidth)
algorithm/testJustification.java:2
Method
gameOfLife
(int[][] board)
algorithm/gameOfLife.java:8
Method
generate
(int numRows)
algorithm/pascalTriangle.java:2
Method
generateMatrix
(int n)
algorithm/spiralMatrixII.java:3
Method
generatePalindromes
(String s)
algorithm/palindromPermutation.java:3
Method
generateParenthesis
(int n)
algorithm/generateParenthesis.java:2
Method
generatePossibleNextMoves
(String s)
algorithm/flipGame.java:5
Method
generateTrees
(int n)
algorithm/uniqueBinarySearchTreeII.java:3
Method
get
Provide a number which is not assigned to anyone. @return - Return an available number. Return -1 if none is available.
algorithm/designPhoneDictionary.java:19
Method
getFactors
(int n)
algorithm/factorCombination.java:3
Method
getHint
(String secret, String guess)
algorithm/bullsAndCows.java:3
Method
getIntersectionNode
(ListNode headA, ListNode headB)
algorithm/intersectionOfTwoLinkedLists.java:4
Method
getMin
()
algorithm/minStack.java:30
Method
getMinimumDifference
(TreeNode root)
algorithm/minimumAbsoluteDifferenceInBST.java:4
Method
getModifiedArray
(int length, int[][] updates)
algorithm/rangeAddition.java:5
Method
getMoneyAmount
(int n)
algorithm/guessNumberHigherOrLowII.java:7
Method
getNewsFeed
Retrieve the 10 most recent tweet ids in the user's news feed. Each item in the news feed must be posted by users who the user followed or by the user
algorithm/designTwitter.java:21
Method
getPermutation
(int n, int k)
algorithm/permutationSequence.java:3
Method
getRandom
Get a random element from the set.
algorithm/InsertDeleteGetRamdom.java:42
Method
getRandom
Get a random element from the collection.
algorithm/InsertDeleteGetRamdom-AllowDuplicate.java:46
Method
getRandom
Returns a random node's value.
algorithm/linkedListRandomNode.java:29
Method
getRow
(int rowIndex)
algorithm/pascalTriangleII.java:2
Method
getSkyline
(int[][] buildings)
algorithm/skylineProblem.java:6
Method
getSum
(int a, int b)
algorithm/sumOfTwoInteger.java:13
Method
grayCode
(int n)
algorithm/grayCode.java:4
Method
groupAnagrams
(String[] strs)
algorithm/GroupAnagram.java:2
Method
groupStrings
(String[] strings)
algorithm/groupShiftedStrings.java:4
Method
guessNumber
(int n)
algorithm/guessNumberHigherOrLower.java:8
Method
hIndex
(int[] citations)
algorithm/H-IndexII.java:3
Method
hIndex
(int[] citations)
algorithm/H-Index.java:5
Method
hammingWeight
(int n)
algorithm/numberOf1Bits.java:3
Method
hasCycle
(ListNode head)
algorithm/linkedListCycle.java:13
Method
hasNext
()
algorithm/flattenNestedListIterator.java:37
Method
hasNext
@return whether we have a next smallest number
algorithm/binarySearchTreeIterator.java:23
Method
hasPath
(int[][] maze, int[] start, int[] destination)
algorithm/theMaze.java:6
Method
hasPathSum
(TreeNode root, int sum)
algorithm/pathSum.java:25
Method
imageSmoother
(int[][] M)
algorithm/imageSmoother.java:2
Method
inorderPredecessor
(TreeNode root, TreeNode p)
algorithm/inorderSuccessorBST.java:20
Method
inorderSuccessor
(TreeNode root, TreeNode p)
algorithm/inorderSuccessorBST.java:8
Method
inorderSuccessor
(Node x)
algorithm/inorderSuccessorBSTII.java:18
Method
insert
Inserts a value to the set. Returns true if the set did not already contain the specified element.
algorithm/InsertDeleteGetRamdom.java:15
Method
insert
Inserts a word into the trie.
algorithm/implementTrie(prefix)Tree.java:12
Method
insert
Inserts a value to the collection. Returns true if the collection did not already contain the specified element.
algorithm/InsertDeleteGetRamdom-AllowDuplicate.java:13
Method
insert
(List<Interval> intervals, Interval newInterval)
algorithm/insertInterval.java:14
Method
insertionSortList
(ListNode head)
algorithm/insertionSortLinkedList.java:3
Method
intToRoman
(int num)
algorithm/IntegerToRoman.java:2
Method
intersect
(int[] nums1, int[] nums2)
algorithm/intersectionOfTwoArraysII.java:3
Method
intersection
(int[] nums1, int[] nums2)
algorithm/intersectionOfTwoArrays.java:2
Method
invertTree
(TreeNode root)
algorithm/invertBinaryTree.java:11
Method
isAdditiveNumber
(String num)
algorithm/additiveNumber.java:28
Method
isAnagram
(String s, String t)
algorithm/validAnagram.java:3
Method
isBalanced
(TreeNode root)
algorithm/balancedBinaryTree.java:33
Method
isHappy
(int n)
algorithm/happyNumber.java:3
Method
isInterleave
(String s1, String s2, String s3)
algorithm/interleavingString.java:10
Method
isIsomorphic
(String s, String t)
algorithm/isomorphicString.java:2
Method
isIsomorphic
(String s, String t)
algorithm/isomorphicString.java:40
Method
isMatch
(String s, String p)
algorithm/wildcardMatching.java:5
Method
isMatch
(String s, String p)
algorithm/regularExpressionMatching.java:13
Method
isNumber
(String s)
algorithm/validNumber.java:2
Method
isOneEditDistance
(String s, String t)
algorithm/oneEditDistance.java:6
Method
isPalindrome
(int x)
algorithm/palindromInteger.java:3
Method
isPalindrome
(ListNode head)
algorithm/palindromLinkedList.java:11
Method
isPalindrome
(String s)
algorithm/validPalindrome.java:4
Method
isPerfectSquare
(int num)
algorithm/validPerfectSquare.java:6
Method
isPowerOfFour
(int num)
algorithm/powerOfFour.java:3
Method
isPowerOfThree
(int n)
algorithm/powerOfThree.java:2
Method
isPowerOfThree
(int n)
algorithm/powerOfThree.java:21
Method
isPowerOfTwo
(int n)
algorithm/powerOfTwo.java:2
Method
isRectangleCover
(int[][] rectangles)
algorithm/perfectRectangel.java:7
Method
isReflected
(int[][] points)
algorithm/lineReflection.java:4
Method
isScramble
(String s1, String s2)
algorithm/scrambleString.java:4
Method
isStrobogrammatic
(String num)
algorithm/strobogrammaticNumber.java:6
Method
isSubtree
(TreeNode s, TreeNode t)
algorithm/subtreeOfAnotherTree.java:37
Method
isSymmetric
(TreeNode root)
algorithm/symmetricTree.java:44
Method
isUgly
(int num)
algorithm/uglyNumber.java:3
← previous
next →
401–500 of 771, ranked by callers