MCPcopy Create free account

hub / github.com/Cee/Leetcode / functions

Functions840 in github.com/Cee/Leetcode

Methodhit
Record a hit. @param timestamp - The current timestamp (in seconds granularity).
362 - Design Hit Counter.java:20
MethodhitBricks
(int[][] grid, int[][] hits)
803 - Bricks Falling When Hit.java:31
MethodincreasingBST
(TreeNode root)
897 - Increasing Order Search Tree.java:13
MethodincreasingTriplet
(int[] nums)
334 - Increasing Triplet Subsequence.java:2
MethodinorderSuccessor
(TreeNode root, TreeNode p)
285 - Inorder Successor in BST.java:11
MethodinorderTraversal
(TreeNode root)
94 - Binary Tree Inorder Traversal.java:12
Methodinput
(char c)
642 - Design Search Autocomplete System (with HashMap).java:77
Methodinput
(char c)
642 - Design Search Autocomplete System.java:67
Methodinput
(char c)
642 - Design Search Autocomplete System (without Trie).java:50
Methodinsert
Inserts a word into the trie.
208 - Implement Trie (Prefix Tree).java:19
Methodinsert
Inserts a value to the set. Returns true if the set did not already contain the specified element.
380 - Insert Delete GetRandom O(1).java:16
Methodinsert
Inserts a value to the collection. Returns true if the collection did not already contain the specified element.
381 - Insert Delete GetRandom O(1) - Duplicates allowed.java:14
Methodinsert
(Node head, int insertVal)
708 - Insert into a Cyclic Sorted List.java:16
Methodinsert
(int v)
919 - Complete Binary Tree Inserter.java:29
MethodinsertIntoBST
(TreeNode root, int val)
701 - Insert into a Binary Search Tree.java:11
MethodinsertionSortList
(ListNode head)
147 - Insertion Sort List.java:10
Methodintersect
(int[] nums1, int[] nums2)
350 - Intersection of Two Arrays II.java:3
Methodintersection
(int[] nums1, int[] nums2)
349 - Intersection of Two Arrays.java:2
MethodinvertTree
(TreeNode root)
226 - Invert Binary Tree.java:11
MethodisAnagram
(String s, String t)
242 - Valid Anagram.java:2
MethodisBalanced
(TreeNode root)
110 - Balanced Binary Tree.java:11
MethodisBipartite
(int[][] graph)
785 - Is Graph Bipartite?.java:2
MethodisFull
Checks whether the circular queue is full or not.
622 - Design Circular Queue.java:48
MethodisHappy
(int n)
202 - Happy Number.java:2
MethodisIsomorphic
(String s, String t)
205 - Isomorphic Strings.java:2
MethodisMatch
(String s, String p)
10 - Regular Expression Matching.java:2
MethodisMatch
(String s, String p)
44 - Wildcard Matching.java:2
MethodisMonotonic
(int[] A)
896 - Monotonic Array.java:2
MethodisNStraightHand
(int[] hand, int W)
846 - Hand of Straights.java:2
MethodisNumber
(String s)
65 - Valid Number.java:2
MethodisOneEditDistance
(String s, String t)
161 - One Edit Distance.java:2
MethodisPalindrome
(int x)
9 - Palindrome Number.java:2
MethodisPalindrome
(String s)
125 - Valid Palindrome.java:2
MethodisPalindrome
(ListNode head)
234 - Palindrome Linked List.java:10
MethodisPowerOfFour
(int num)
342 - Power of Four.java:2
MethodisPowerOfThree
(int n)
326 - Power of Three.java:2
MethodisPowerOfTwo
(int n)
231 - Power of Two.java:2
MethodisRectangleOverlap
(int[] rec1, int[] rec2)
836 - Rectangle Overlap.java:2
MethodisSameTree
(TreeNode p, TreeNode q)
100 - Same Tree.java:11
MethodisStrobogrammatic
(String num)
246 - Strobogrammatic Number.java:2
MethodisSubsequence
(String s, String t)
392 - Is Subsequence.java:2
MethodisSubtree
(TreeNode s, TreeNode t)
572 - Subtree of Another Tree.java:11
MethodisSymmetric
(TreeNode root)
101 - Symmetric Tree.java:11
MethodisToeplitzMatrix
(int[][] matrix)
766 - Toeplitz Matrix.java:2
MethodisUnique
(String word)
288 - Unique Word Abbreviation.java:15
MethodisValid
(String s)
20 - Valid Parentheses.java:2
MethodisValidBST
(TreeNode root)
98 - Validate Binary Search Tree.java:12
MethodisValidSudoku
(char[][] board)
36 - Valid Sudoku.java:2
MethodislandPerimeter
(int[][] grid)
463 - Island Perimeter.java:2
MethodjudgeCircle
(String moves)
657 - Judge Route Circle.java:2
Methodjump
(int[] nums)
45 - Jump Game II.java:2
MethodkEmptySlots
(int[] flowers, int k)
683 - K Empty Slots.java:2
MethodkSmallestPairs
(int[] nums1, int[] nums2, int k)
373 - Find K Pairs with Smallest Sums.java:10
MethodkillProcess
(List<Integer> pid, List<Integer> ppid, int kill)
582 - Kill Process.java:2
MethodknightDialer
(int N)
935 - Knight Dialer.java:2
MethodknightProbability
(int N, int K, int r, int c)
688 - Knight Probability in Chessboard.java:2
MethodkthSmallest
(TreeNode root, int k)
230 - Kth Smallest Element in a BST.java:13
MethodkthSmallest
(int[][] matrix, int k)
378 - Kth Smallest Element in a Sorted Matrix.java:10
MethodladderLength
(String beginWord, String endWord, List<String> wordList)
127 - Word Ladder.java:2
MethodlargeGroupPositions
(String S)
830 - Positions of Large Groups.java:2
MethodlargestOverlap
(int[][] A, int[][] B)
835 - Image Overlap.java:2
MethodlargestPalindrome
(int n)
479 - Largest Palindrome Product.java:2
MethodlargestRectangleArea
(int[] heights)
84 - Largest Rectangle in Histogram.java:3
MethodleafSimilar
(TreeNode root1, TreeNode root2)
872 - Leaf-Similar Trees.java:11
MethodleastBricks
(List<List<Integer>> wall)
554 - Brick Wall.java:2
MethodleastInterval
(char[] tasks, int n)
621 - Task Scheduler.java:2
Methodleave
(int p)
855 - Exam Room.java:34
MethodlengthLongestPath
(String input)
388 - Longest Absolute File Path.java:2
MethodlengthOfLIS
(int[] nums)
300 - Longest Increasing Subsequence.java:2
MethodlengthOfLongestSubstring
(String s)
3 - Longest Substring Without Repeating Characters.java:2
MethodlengthOfLongestSubstringKDistinct
(String s, int k)
340 - Longest Substring with At Most K Distinct Characters.java:2
MethodlengthOfLongestSubstringTwoDistinct
(String s)
159 - Longest Substring with At Most Two Distinct Characters.java:2
MethodletterCombinations
(String digits)
17 - Letter Combinations of a Phone Number.java:2
MethodlevelOrder
(TreeNode root)
102 - Binary Tree Level Order Traversal.java:12
MethodlicenseKeyFormatting
(String S, int K)
482 - License Key Formatting.java:2
MethodlongestCommonPrefix
(String[] strs)
14 - Longest Common Prefix.java:2
MethodlongestConsecutive
(int[] nums)
128 - Longest Consecutive Sequence.java:2
MethodlongestConsecutive
(TreeNode root)
549 - Binary Tree Longest Consecutive Sequence II.java:12
MethodlongestIncreasingPath
(int[][] matrix)
329 - Longest Increasing Path in a Matrix.java:6
MethodlongestLine
(int[][] M)
562 - Longest Line of Consecutive One in Matrix.java:2
MethodlongestPalindrome
(String s)
5 - Longest Palindromic Substring.java:2
MethodlongestPalindrome
(String s)
409 - Longest Palindrome.java:2
MethodlongestPalindromeSubseq
(String s)
516 - Longest Palindromic Subsequence.java:2
MethodlongestSubstring
(String s, int k)
395 - Longest Substring with At Least K Repeating Characters.java:2
MethodlongestUnivaluePath
(TreeNode root)
687 - Longest Univalue Path.java:12
MethodlongestValidParentheses
(String s)
32 - Longest Valid Parentheses.java:2
MethodlongestWord
(String[] words)
720 - Longest Word in Dictionary.java:40
MethodlowestCommonAncestor
(TreeNode root, TreeNode p, TreeNode q)
235 - Lowest Common Ancestor of a Binary Search Tree.java:11
MethodlowestCommonAncestor
(TreeNode root, TreeNode p, TreeNode q)
236 - Lowest Common Ancestor of a Binary Tree.java:14
Methodmain
(String[] args)
Coursera/Split the pixels.java:57
Methodmain
(String[] args)
Coursera/Last substring.java:12
MethodmajorityElement
(int[] nums)
169 - Majority Element.java:2
MethodmakeLargestSpecial
(String S)
761 - Special Binary String.java:2
MethodmaxArea
(int[] height)
11 - Container With Most Water.java:2
MethodmaxAreaOfIsland
(int[][] grid)
695 - Max Area of Island.java:4
MethodmaxChunksToSorted
(int[] arr)
769 - Max Chunks To Make Sorted.java:2
MethodmaxCoins
(int[] nums)
312 - Burst Balloons.java:2
MethodmaxDepth
(TreeNode root)
104 - Maximum Depth of Binary Tree.java:25
MethodmaxDepth
(Node root, int depth)
559 - Maximum Depth of N-ary Tree.java:16
MethodmaxDistToClosest
(int[] seats)
849 - Maximize Distance to Closest Person.java:2
← previousnext →501–600 of 840, ranked by callers