Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Semaserg/LeetCodeProblems
/ functions
Functions
1,412 in github.com/Semaserg/LeetCodeProblems
⨍
Functions
1,412
◇
Types & classes
729
↓ 1 callers
Method
countComponents
(int n, int[][] edges)
graph/NumberOfConnectedComponentsInAnUndirectedGraph_323/Solution.java:98
↓ 1 callers
Method
countNodes
(TreeNode root)
tree/CountCompleteTreeNodes_222/Solution.java:31
↓ 1 callers
Method
countNumbersWithUniqueDigits
(int n)
math/CountNumbersWithUniqueDigits_357/Solution.java:55
↓ 1 callers
Method
countPrimes
(int n)
array/CountPrimes_204/Solution.java:18
↓ 1 callers
Method
createMenuBar
()
graph/GenerateMaze_vstar/StdDraw.java:707
↓ 1 callers
Method
decode
(String shortUrl)
hashtable/EncodeAndDecodeTinyURL_535_/Codec.java:58
↓ 1 callers
Method
decode
(String s)
string/EncodeAndDecodeStrings_271/Codec.java:55
↓ 1 callers
Method
decodeString
(String s)
stack/DecodeString_394/Solution.java:36
↓ 1 callers
Method
decreaseKey
Decrease the key associated with index {@code i} to the specified value. @param i the index of the key to decrease @param key decrease the key asso
design/ImplementShortestPathTreeViaDijkstra/IndexMinPQ.java:212
↓ 1 callers
Method
delete
Remove the key associated with index {@code i}. @param i the index of the key to remove @throws IndexOutOfBoundsException unless {@code 0 <= i < maxN
design/ImplementShortestPathTreeViaDijkstra/IndexMinPQ.java:246
↓ 1 callers
Method
deleteDuplicates
(ListNode head)
linkedList/RemoveDuplicatesFromSortedList2_82_/Solution.java:24
↓ 1 callers
Method
deleteMax
()
design/ImplementSymbolTableViaBinarySearchTree/SymbolTable.java:97
↓ 1 callers
Method
deleteNode
(ListNode node)
linkedList/DeleteNodeInALinkedList_237/Solution.java:23
↓ 1 callers
Method
deserialize
(String s)
stack/MiniParser_385/Solution.java:71
↓ 1 callers
Method
deserialize
(String data)
dynamic/SerializeAndDeserializeBinaryTree_297/Codec.java:41
↓ 1 callers
Method
destroyIsland
(int i, int j, char[][] grid)
unionFind/NumberOfIslands_200/Solution.java:51
↓ 1 callers
Method
detectCycle
(ListNode head)
linkedList/LinkedListCycle2_142/Solution.java:32
↓ 1 callers
Method
dfs
(int curr)
design/ImplementConnectedComponents/ConnectedComponents.java:30
↓ 1 callers
Method
dfs
(Digraph g, int curr, LinkedList<Integer> list)
design/ImplementTopologicalSortInDigraph/DepthFirstOrder.java:25
↓ 1 callers
Method
dfs
(int current, LinkedList result)
design/ImplementGraphDfs/DepthFirstSearch.java:41
↓ 1 callers
Method
dfs
(int[] candidates, int target, int index, ArrayList<Integer> path, List<List<Integer>> res)
backTracking/CombinationSum2_40/Solution.java:71
↓ 1 callers
Method
dfs
(int current, Queue<Integer> queue, List<Integer>[] graph, boolean[] visited, boolean[] recStack)
graph/CourseSchedule2_210/Solution.java:93
↓ 1 callers
Method
dfs
(int current, LinkedList<Integer>[] graph, boolean[] visited)
graph/NumberOfConnectedComponentsInAnUndirectedGraph_323/Solution.java:88
↓ 1 callers
Method
dfs
(int root)
graph/GraphTraversal_BFS_DFS_iterativeDFS/Graph.java:20
↓ 1 callers
Method
dfs
(TreeNode current, TreeNode parent, int prevLength)
tree/BinaryTreeLongestConsecutiveSequence_298/Solution.java:46
↓ 1 callers
Method
dfs
(int level, TreeNode current)
tree/BinaryTreeVerticalOrderTraversal_314/Solution.java:53
↓ 1 callers
Method
dfs1
(String departure)
graph/ReconstructItinerary_332/Solution.java:59
↓ 1 callers
Method
dfsIterative
(int root)
graph/GraphTraversal_BFS_DFS_iterativeDFS/Graph.java:38
↓ 1 callers
Method
dfsRecursive
(int current, boolean[] visited, List<Integer> res)
graph/GraphTraversal_BFS_DFS_iterativeDFS/Graph.java:27
↓ 1 callers
Method
dfsUtil
(Doctor start, Doctor current, int topCounter, PriorityQueue<Doctor> heap, Set<String> visited)
graph/DoctorsRating_real/Solution.java:74
↓ 1 callers
Method
digitSquareSum
(int n)
hashtable/HappyNumber_202/Solution.java:59
↓ 1 callers
Method
dp
(int row, int col, int[][] grid, Set<String> visited)
array/IslandPerimeter_463_/Solution.java:69
↓ 1 callers
Method
dp
(String s, int left, int right, HashSet<String> dict)
dynamic/WordBreak_139/Solution.java:34
↓ 1 callers
Method
dp
(TreeNode current)
tree/BinaryTreeUpsideDown_156_/Solution.java:53
↓ 1 callers
Method
draw
()
graph/GenerateMaze_vstar/Maze.java:146
↓ 1 callers
Method
drawMaze
()
graph/GenerateMaze_vstar/Maze.java:153
↓ 1 callers
Method
encode
(String longUrl)
hashtable/EncodeAndDecodeTinyURL_535_/Codec.java:49
↓ 1 callers
Method
encode
(List<String> strs)
string/EncodeAndDecodeStrings_271/Codec.java:46
↓ 1 callers
Method
eval
(int a, int b, char operator)
stack/EvaluateReversePolishNotation_150/Solution.java:39
↓ 1 callers
Method
evalRPN
(String[] tokens)
stack/EvaluateReversePolishNotation_150/Solution.java:19
↓ 1 callers
Method
execute
(int left, int right, String sign)
string/BasicCalculator2_227/Solution.java:115
↓ 1 callers
Method
exist
(char[][] board, String word)
backTracking/WordSearch_79/Solution.java:33
↓ 1 callers
Method
fib
(int N)
array/FibonacciNumber_509/Solution.java:13
↓ 1 callers
Method
filledPolygon
Draws a polygon with the vertices (<em>x</em><sub>0</sub>, <em>y</em><sub>0</sub>), (<em>x</em><sub>1</sub>, <em>y</em><sub>1</sub>), ..., (<em>x</em>
graph/GenerateMaze_vstar/StdDraw.java:1224
↓ 1 callers
Method
filledSquare
Draws a filled square of the specified size, centered at (<em>x</em>, <em>y</em>). @param x the <em>x</em>-coordinate of the center of the square @p
graph/GenerateMaze_vstar/StdDraw.java:1129
↓ 1 callers
Method
finalize
(int[][] board)
array/GameOfLife_289/Solution.java:51
↓ 1 callers
Method
findCelebrity
(int n)
array/FindTheCelebrity_277/Solution.java:34
↓ 1 callers
Method
findComplement
(int num)
bitManipulation/NumberComplement_476/Solution.java:30
↓ 1 callers
Method
findDiagonalOrder
(int[][] matrix)
array/DiagonalTraverse_498/Solution.java:23
↓ 1 callers
Method
findDisappearedNumbers
(int[] nums)
array/FindAllNumbersDisappearedInAnArray_448/Solution.java:25
↓ 1 callers
Method
findDuplicate
(int[] nums)
array/FindTheDuplicateNumber_287_/Solution.java:20
↓ 1 callers
Method
findDuplicates
(int[] nums)
array/FindAllDuplicatesInAnArray_442/Solution.java:26
↓ 1 callers
Method
findIndex
(int[] inorder, int inordLeftInd, int inordRightInd, int value)
tree/ConstructBinaryTreeFromPreorderAndInorderTraversal_105/Solution.java:41
↓ 1 callers
Method
findIndexByValue
(int[] inorder, int inorderLeftInd, int inorderRightInd, int value)
tree/ConstructBinaryTreeFromInorderAndPostorderTraversal_106/Solution.java:69
↓ 1 callers
Method
findItinerary
(String[][] tickets)
graph/ReconstructItinerary_332/Solution.java:39
↓ 1 callers
Method
findKthLargest
(int[] nums, int k)
array/KthLargestElementInAnArray_215/Solution.java:65
↓ 1 callers
Method
findKthSmallest
(int[] nums, int k)
array/WiggleSort2_324/Solution.java:50
↓ 1 callers
Method
findLca
(TreeNode root, TreeNode p, TreeNode q)
tree/LowestCommonAncestorOfABinaryTree_236/Solution.java:44
↓ 1 callers
Method
findMaxConsecutiveOnes
(int[] nums)
array/MaxConsecutiveOnes_485/Solution.java:22
↓ 1 callers
Method
findMedianSortedArrays
(int[] nums1, int[] nums2)
binarySearch/MedianOfTwoSortedArrays_4/Solution.java:45
↓ 1 callers
Method
findMin
(int[] nums)
array/FindMinimumInRotatedSortedArray_153/Solution.java:29
↓ 1 callers
Method
findMinEditDistance
(String a, String b)
dynamic/LevenshteinDistance/Solution.java:11
↓ 1 callers
Method
findMinHeightTrees
(int n, int[][] edges)
graph/MinimumHeightTrees_310/Solution.java:63
↓ 1 callers
Method
findMissingRanges
(int[] nums, int lower, int upper)
array/MissingRanges_163/Solution.java:17
↓ 1 callers
Method
findOrder
(int numCourses, int[][] prerequisites)
graph/CourseSchedule2_210/Solution.java:61
↓ 1 callers
Method
findPath
(char[][] board, int i, int j, String word, int index)
backTracking/WordSearch_79/Solution.java:56
↓ 1 callers
Method
findPeakElement
(int[] nums)
array/FindPeakElement_162/Solution.java:57
↓ 1 callers
Method
findRepeatedDnaSequences
(String s)
hashtable/RepeatedDNASequences_187/Solution.java:46
↓ 1 callers
Method
findShortestSubArray
(int[] nums)
array/DegreeOfAnArray_697/Solution.java:30
↓ 1 callers
Method
findSubstring
(String s, String[] words)
hashtable/SubstringWithConcatenationOfAllWords_30/Solution.java:28
↓ 1 callers
Method
findTarget
(TreeNode root, int k)
tree/TwoSum4InputIsBST_653/Solution.java:35
↓ 1 callers
Method
findTargetRecursive
(TreeNode root, Set<Integer> set, int k)
tree/TwoSum4InputIsBST_653/Solution.java:39
↓ 1 callers
Method
findTheDifference
(String s, String t)
bitManipulation/FindTheDifference_389/Solution.java:27
↓ 1 callers
Method
findUnsortedSubarray
(int[] nums)
array/ShortestUnsortedContinuousSubarray_581/Solution.java:26
↓ 1 callers
Method
findWords
(String[] words)
hashtable/KeyboardRow_500/Solution.java:20
↓ 1 callers
Method
firstBadVersion
(int n)
binarySearch/FirstBadVersion_278/Solution.java:30
↓ 1 callers
Method
firstUniqChar
(String s)
string/FirstUniqueCharacterInAString_387/Solution.java:21
↓ 1 callers
Method
fizzBuzz
(int n)
string/FizzBuzz_412/Solution.java:40
↓ 1 callers
Method
flatten
(TreeNode root)
tree/FlattenBinaryTreeToLinkedList_114/Solution.java:83
↓ 1 callers
Method
flipColors
(Node h)
design/ImplementRedBlackTree/LeanLeftRedBlackTree.java:60
↓ 1 callers
Method
follow
Follower follows a followee. If the operation is invalid, it should be a no-op.
design/DesignTwitter_355/Twitter.java:117
↓ 1 callers
Method
fourSum
(int[] nums, int target)
array/FourSum_18/Solution.java:28
↓ 1 callers
Method
fractionToDecimal
(int numerator, int denominator)
math/FractionToRecurringDecimal_166/Solution.java:80
↓ 1 callers
Method
frequencySort1
(String s)
hashtable/SortCharactersByFrequency_451_/Solution.java:71
↓ 1 callers
Method
freshCopy
(List<User> users)
design/Mocks/Solution.java:32
↓ 1 callers
Method
fromArray
(String[] words)
backTracking/WordSquares_425/Trie.java:68
↓ 1 callers
Method
gameOfLife
(int[][] board)
array/GameOfLife_289/Solution.java:35
↓ 1 callers
Method
gen1
(int start, int end)
dynamic/UniqueBinarySearchTrees2_95/Solution.java:92
↓ 1 callers
Method
generate
(int numRows)
array/PascalTriangle_118/Solution.java:39
↓ 1 callers
Method
generate
(int x, int y)
graph/GenerateMaze_vstar/Maze.java:107
↓ 1 callers
Method
generateKey
()
hashtable/EncodeAndDecodeTinyURL_535_/Codec.java:63
↓ 1 callers
Method
generateMatrix
(int n)
array/SpiralMatrix2_59/Solution.java:24
↓ 1 callers
Method
generateParenthesis
(int n)
string/GenerateParentheses_22/Solution.java:56
↓ 1 callers
Method
generateParenthesisRecursive
(List<String> res, String current, int leftCnt, int rightCnt)
string/GenerateParentheses_22/Solution.java:41
↓ 1 callers
Method
generateRecursive
(List<List<Integer>> arr, int num)
array/PascalTriangle_118/Solution.java:25
↓ 1 callers
Method
generateTimetable
(List<User> users)
design/Mocks/Timetable.java:19
↓ 1 callers
Method
generateTimetableCandidates
(String[] userRecords)
design/Mocks/Solution.java:9
↓ 1 callers
Method
generateTrees
(int n)
dynamic/UniqueBinarySearchTrees2_95/Solution.java:34
↓ 1 callers
Method
getBoxSet
(int rowStart, int colStart)
backTracking/SudokuSolver_37/Solution.java:95
↓ 1 callers
Method
getByPrefix
(String prefix)
backTracking/WordSquares_425/Trie.java:49
← previous
next →
301–400 of 1,412, ranked by callers