MCPcopy Create free account

hub / github.com/DestinationFAANG/Destination-FAANG-Java-Solution / functions

Functions291 in github.com/DestinationFAANG/Destination-FAANG-Java-Solution

MethodlongestCommonSubsequence
(String text1, String text2)
1174 Longest Common Subsequence/1174 Longest Common Subsequence.java:2
MethodlongestCommonSubsequence
(String text1, String text2)
1143 Longest Common Subsequence/1143 Longest Common Subsequence.java:10
MethodlongestConsecutive
(int[] nums)
128 Longest Consecutive Sequence/128 Longest Consecutive Sequence.java:2
MethodlongestIncreasingPath
(int[][] matrix)
329 Longest Increasing Path in a Matrix/329 Longest Increasing Path in a Matrix.java:16
MethodlongestPalindrome
(String s)
5 Longest Palindromic Substring/5 Longest Palindromic Substring.java:5
MethodlongestValidParentheses
(String s)
32 Longest Valid Parentheses/32 Longest Valid Parentheses.java:11
MethodlowestCommonAncestor
(TreeNode root, TreeNode p, TreeNode q)
235 Lowest Common Ancestor of a Binary Search Tree/235 Lowest Common Ancestor of a Binary Search Tree.java:9
MethodmajorityElement
(int[] nums)
169 Majority Element/Majority Element.java:22
MethodmaxArea
(int[] height)
11 container with most water/11 Container With Most Water.java:7
MethodmaxAreaOfIsland
(int[][] grid)
695 Max Area of Island/695 Max Area of Island.java:10
MethodmaxCoins
(int[] nums)
312 Burst Balloons/312 Burst Balloons.java:8
MethodmaxDepth
(TreeNode root)
104 Maximum Depth of Binary Tree/104 Maximum Depth of Binary Tree.java:6
MethodmaxPathSum
(TreeNode root)
124 Binary Tree Maximum Path Sum/124 Binary Tree Maximum Path Sum.java:26
MethodmaxProduct
(int[] nums)
152 Maximum product SubArray/152 Maximum Product Subarray.java.java:9
MethodmaxProfit
(int[] prices)
121 best time to buy and sell stocks/121 best time to buy and sell stocks.java.java:2
MethodmaxProfit
(int[] prices)
309 Best Time to Buy and Sell Stock with Cooldown/309 Best Time to Buy and Sell Stock with Cooldown.java:10
MethodmaxSlidingWindow
(int[] nums, int k)
239 Sliding Window Maximum/239 Sliding Window Maximum.java:14
MethodmaxSubArray
(int[] nums)
53 Maximum SubArray/53- Maximum Subarray.java:2
Methodmerge
(int[][] intervals)
56 Merge Intervals/56 Merge Intervals.java:2
Methodmerge
(int[] nums1, int m, int[] nums2, int n)
88 Merge Sorted Array/88 Merge Sorted Array.java:11
MethodmergeKLists
(ListNode[] lists)
23 Merge K Sorted Lists/23 Merge K Sorted Lists.java:15
MethodmergeTriplets
(int[][] triplets, int[] target)
1899 Merge Triplets to Form Target Triplet/1899 Merge Triplets to Form Target Triplet.java:12
MethodmergeTwoLists
(ListNode list1, ListNode list2)
21 Merge Two Sorted Lists/21 Merge Two Sorted Lists.java:12
MethodmiddleNode
(ListNode head)
876 Middle of the Linked List/876 Middle of the Linked List.java:8
MethodminCostClimbingStairs
(int[] cost)
746 Min Cost Climbing Stairs/746 Min Cost Climbing Stairs.java:10
MethodminDistance
(String word1, String word2)
72 Edit Distance/72 Edit Distance.java:12
MethodminEatingSpeed
(int[] piles, int h)
875 Koko Eating Bananas/875 Koko Eating Bananas.java:10
MethodminInterval
(int[][] intervals, int[] queries)
1851 Minimum Interval to Include Each Query/1851 Minimum Interval to Include Each Query.java:11
MethodminMeetingRooms
(int[][] intervals)
253 Meeting Rooms 2/253 Meeting Rooms 2.java:2
MethodminRemoveToMakeValid
(String s)
1249 Minimum Remove to Make Valid Parentheses/1249 Minimum Remove to Make Valid Parentheses.java:10
MethodminWindow
(String s, String t)
76 Minimum Window Substring/76 Minimum Window Substring.java:4
Methodmove
Player {player} makes a move at ({row}, {col}). @param row The row of the board. @param col The column of the board. @param pl
348 design tic-tac-toe/348 design tic-tac-toe.java:32
Methodmultiply
(String num1, String num2)
43 Multiply Strings/43 Multiply Strings.java:11
MethodmyPow
(double x, int n)
50 Pow(x, n)/50 Pow(x, n).java:10
MethodnetworkDelayTime
(int[][] times, int n, int k)
1584 network delay time/1584 network delay time.java:10
MethodnetworkDelayTime
(int[][] times, int n, int k)
778 Swim in Rising Water/778 Swim in Rising Water.java:10
Methodnext
(int val)
346 Moving Average from Data Stream/346 Moving Average from Data Stream.java:17
MethodnextPermutation
(int[] nums)
31 Next Permutation/31 Next Permutation.java:11
MethodnumDecodings
(String s)
91 Decode Ways/91 Decode Ways.java:2
MethodnumDistinct
(String s, String t)
115 Distinct Subsequences/115 Distinct Subsequences.java:11
MethodnumIslands
(char[][] grid)
200 Number of Islands/200 Number of Islands.java:2
MethodopenLock
(String[] deadends, String target)
752 Open the Lock/752 Open the Lock.java:13
MethodorangesRotting
(int[][] grid)
994 Rotting Oranges/994 Rotting Oranges.java:13
MethodpacificAtlantic
(int[][] heights)
417 Pacific Atlantic Water Flow/417 Pacific Atlantic Water Flow.java:3
Methodpartition
(String s)
131 Palindrome Partitioning/131 Palindrome Partitioning.java:10
MethodpartitionLabels
(String s)
763 Partition Labels/763 Partition Labels.java:10
Methodpermute
(int[] nums)
46 permutations/46 Permutations.java:14
MethodplusOne
(int[] digits)
66 Plus One/66 Plus One.java:11
MethodpopMax
()
716 max stack/716 max stack.java:39
MethodpostTweet
Compose a new tweet.
355 Design Twitter/355 Design Twitter.java:66
MethodpredictPartyVictory
(String senate)
649 Dota2 Senate/649 Dota2 Senate.java:14
MethodproductExceptSelf
(int[] nums)
238 product of array except self/238 product of array except self.java.java:2
Methodracecar
(int target)
818 Race Car/818 Race Car.java:11
MethodremoveNthFromEnd
(ListNode head, int n)
19 Remove Nth Node From End of List/Remove Nth Node From End of List.java:15
MethodreorderList
(ListNode head)
143 Reorder List/143 Reorder List.java:15
Methodreverse
(int x)
7 Reverse Integer/7 Reverse Integer.java:9
MethodreverseBits
(int n)
190 Reverse bits/190 Reverse Bits.java:3
MethodreverseKGroup
(ListNode head, int k)
25 Reverse Nodes in k-Group/Reverse Nodes in k-Group.java:21
MethodreverseList
(ListNode head)
206 Reverse Linked List/206 Reverse Linked List.java:12
MethodrightSideView
(TreeNode root)
199 Binary Tree Right Side View/199 Binary Tree Right Side View.java:25
Methodrob
(int[] nums)
198 house robber/198 House Robber.java:2
Methodrob
(int[] nums)
213 house robber 2/213 House Robber 2.java:2
MethodromanToInt
(String s)
13 Roman to Integer/13 Roman to Integer.java:30
Methodrotate
(int[][] matrix)
48 Rotate Image/48 Rotate Image.java:5
Methodsearch
(int[] nums, int target)
33 Search in Rotated Sorted Array/33 Search in Rotated Sorted Array.java:9
Methodsearch
(int[] nums, int target)
704 Binary Search/704 Binary Search.java:10
Methodsearch
(String word)
208 Implement Trie (Prefix Tree)/208 Implement Trie (Prefix Tree).java:73
Methodsearch
(String word)
211 Design Add and Search Words Data Structure/211 Design Add and Search Words Data Structure.java:55
MethodsearchMatrix
(int[][] matrix, int target)
74 Search a 2D Matrix/74 Search a 2D Matrix.java:10
MethodsearchRange
(int[] nums, int target)
34 Find First and Last Position of Element in Sorted Array/34 Find First and Last Position of Element in Sorted Array.java:11
Methodserialize
(TreeNode root)
297 Serialize and Deserialize Binary Tree/297 Serialize and Deserialize Binary Tree.java:20
MethodsetZeroes
(int[][] matrix)
73 Set Matrix Zeroes/73 Set Matrix Zeroes.java:6
MethodshouldPrintMessage
Returns true if the message should be printed in the given timestamp, otherwise returns false.
359 Logger Rate Limiter/Logger Rate Limiter.java:21
MethodsingleNumber
(int[] nums)
136 Single Number/136 Single Number.java:10
Methodsolve
(char[][] board)
130 Surrounded Regions/130 Surrounded Regions.java:10
MethodsolveNQueens
(int n)
51 N-Queens/51 N-Queens.java:10
MethodsortList
(ListNode head)
148 Sort List/148 Sort List.java:11
MethodspiralOrder
(int[][] matrix)
54 Spiral Matrix/54 Spiral Matrix.java:5
Methodsubsets
(int[] nums)
78 Subsets/78 Subsets.java:11
MethodsubsetsWithDup
(int[] nums)
90 Subsets II/90 Subsets II.java:11
MethodthreeSum
(int[] nums)
15 3sum/15 3-Sum.java:6
Methodtop
()
155 Min Stack/155 Min Stack.java:30
MethodtopKFrequent
(int[] nums, int k)
347 Top K Frequent Elements/347 Top K Frequent Elements.java:9
Methodtrap
(int[] height)
42 trapping rain water/42 Trapping Rain Water.java:2
MethodtwoSum
(int[] numbers, int target)
167 two sum 2/167 two sum 2.java:6
Methodunfollow
(int id)
355 Design Twitter/355 Design Twitter.java:32
Methodunfollow
Follower unfollows a followee.
355 Design Twitter/355 Design Twitter.java:120
MethoduniquePaths
(int m, int n)
62 Unique Paths/62 Unique Paths.java:2
MethodvalidTree
(int n, int[][] edges)
261 Graph Valid tree/261 Graph Valid Tree.java:2
MethodwallsAndGates
(int[][] rooms)
286 Walls and gates/286 Walls and gates.java:16
MethodwordBreak
(String s, List<String> wordDict)
139 Word break/139 Word Break.java:2
← previous201–291 of 291, ranked by callers