Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DestinationFAANG/Destination-FAANG-Java-Solution
/ functions
Functions
291 in github.com/DestinationFAANG/Destination-FAANG-Java-Solution
⨍
Functions
291
◇
Types & classes
177
Method
longestCommonSubsequence
(String text1, String text2)
1174 Longest Common Subsequence/1174 Longest Common Subsequence.java:2
Method
longestCommonSubsequence
(String text1, String text2)
1143 Longest Common Subsequence/1143 Longest Common Subsequence.java:10
Method
longestConsecutive
(int[] nums)
128 Longest Consecutive Sequence/128 Longest Consecutive Sequence.java:2
Method
longestIncreasingPath
(int[][] matrix)
329 Longest Increasing Path in a Matrix/329 Longest Increasing Path in a Matrix.java:16
Method
longestPalindrome
(String s)
5 Longest Palindromic Substring/5 Longest Palindromic Substring.java:5
Method
longestValidParentheses
(String s)
32 Longest Valid Parentheses/32 Longest Valid Parentheses.java:11
Method
lowestCommonAncestor
(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
Method
majorityElement
(int[] nums)
169 Majority Element/Majority Element.java:22
Method
maxArea
(int[] height)
11 container with most water/11 Container With Most Water.java:7
Method
maxAreaOfIsland
(int[][] grid)
695 Max Area of Island/695 Max Area of Island.java:10
Method
maxCoins
(int[] nums)
312 Burst Balloons/312 Burst Balloons.java:8
Method
maxDepth
(TreeNode root)
104 Maximum Depth of Binary Tree/104 Maximum Depth of Binary Tree.java:6
Method
maxPathSum
(TreeNode root)
124 Binary Tree Maximum Path Sum/124 Binary Tree Maximum Path Sum.java:26
Method
maxProduct
(int[] nums)
152 Maximum product SubArray/152 Maximum Product Subarray.java.java:9
Method
maxProfit
(int[] prices)
121 best time to buy and sell stocks/121 best time to buy and sell stocks.java.java:2
Method
maxProfit
(int[] prices)
309 Best Time to Buy and Sell Stock with Cooldown/309 Best Time to Buy and Sell Stock with Cooldown.java:10
Method
maxSlidingWindow
(int[] nums, int k)
239 Sliding Window Maximum/239 Sliding Window Maximum.java:14
Method
maxSubArray
(int[] nums)
53 Maximum SubArray/53- Maximum Subarray.java:2
Method
merge
(int[][] intervals)
56 Merge Intervals/56 Merge Intervals.java:2
Method
merge
(int[] nums1, int m, int[] nums2, int n)
88 Merge Sorted Array/88 Merge Sorted Array.java:11
Method
mergeKLists
(ListNode[] lists)
23 Merge K Sorted Lists/23 Merge K Sorted Lists.java:15
Method
mergeTriplets
(int[][] triplets, int[] target)
1899 Merge Triplets to Form Target Triplet/1899 Merge Triplets to Form Target Triplet.java:12
Method
mergeTwoLists
(ListNode list1, ListNode list2)
21 Merge Two Sorted Lists/21 Merge Two Sorted Lists.java:12
Method
middleNode
(ListNode head)
876 Middle of the Linked List/876 Middle of the Linked List.java:8
Method
minCostClimbingStairs
(int[] cost)
746 Min Cost Climbing Stairs/746 Min Cost Climbing Stairs.java:10
Method
minDistance
(String word1, String word2)
72 Edit Distance/72 Edit Distance.java:12
Method
minEatingSpeed
(int[] piles, int h)
875 Koko Eating Bananas/875 Koko Eating Bananas.java:10
Method
minInterval
(int[][] intervals, int[] queries)
1851 Minimum Interval to Include Each Query/1851 Minimum Interval to Include Each Query.java:11
Method
minMeetingRooms
(int[][] intervals)
253 Meeting Rooms 2/253 Meeting Rooms 2.java:2
Method
minRemoveToMakeValid
(String s)
1249 Minimum Remove to Make Valid Parentheses/1249 Minimum Remove to Make Valid Parentheses.java:10
Method
minWindow
(String s, String t)
76 Minimum Window Substring/76 Minimum Window Substring.java:4
Method
move
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
Method
multiply
(String num1, String num2)
43 Multiply Strings/43 Multiply Strings.java:11
Method
myPow
(double x, int n)
50 Pow(x, n)/50 Pow(x, n).java:10
Method
networkDelayTime
(int[][] times, int n, int k)
1584 network delay time/1584 network delay time.java:10
Method
networkDelayTime
(int[][] times, int n, int k)
778 Swim in Rising Water/778 Swim in Rising Water.java:10
Method
next
(int val)
346 Moving Average from Data Stream/346 Moving Average from Data Stream.java:17
Method
nextPermutation
(int[] nums)
31 Next Permutation/31 Next Permutation.java:11
Method
numDecodings
(String s)
91 Decode Ways/91 Decode Ways.java:2
Method
numDistinct
(String s, String t)
115 Distinct Subsequences/115 Distinct Subsequences.java:11
Method
numIslands
(char[][] grid)
200 Number of Islands/200 Number of Islands.java:2
Method
openLock
(String[] deadends, String target)
752 Open the Lock/752 Open the Lock.java:13
Method
orangesRotting
(int[][] grid)
994 Rotting Oranges/994 Rotting Oranges.java:13
Method
pacificAtlantic
(int[][] heights)
417 Pacific Atlantic Water Flow/417 Pacific Atlantic Water Flow.java:3
Method
partition
(String s)
131 Palindrome Partitioning/131 Palindrome Partitioning.java:10
Method
partitionLabels
(String s)
763 Partition Labels/763 Partition Labels.java:10
Method
permute
(int[] nums)
46 permutations/46 Permutations.java:14
Method
plusOne
(int[] digits)
66 Plus One/66 Plus One.java:11
Method
popMax
()
716 max stack/716 max stack.java:39
Method
postTweet
Compose a new tweet.
355 Design Twitter/355 Design Twitter.java:66
Method
predictPartyVictory
(String senate)
649 Dota2 Senate/649 Dota2 Senate.java:14
Method
productExceptSelf
(int[] nums)
238 product of array except self/238 product of array except self.java.java:2
Method
racecar
(int target)
818 Race Car/818 Race Car.java:11
Method
removeNthFromEnd
(ListNode head, int n)
19 Remove Nth Node From End of List/Remove Nth Node From End of List.java:15
Method
reorderList
(ListNode head)
143 Reorder List/143 Reorder List.java:15
Method
reverse
(int x)
7 Reverse Integer/7 Reverse Integer.java:9
Method
reverseBits
(int n)
190 Reverse bits/190 Reverse Bits.java:3
Method
reverseKGroup
(ListNode head, int k)
25 Reverse Nodes in k-Group/Reverse Nodes in k-Group.java:21
Method
reverseList
(ListNode head)
206 Reverse Linked List/206 Reverse Linked List.java:12
Method
rightSideView
(TreeNode root)
199 Binary Tree Right Side View/199 Binary Tree Right Side View.java:25
Method
rob
(int[] nums)
198 house robber/198 House Robber.java:2
Method
rob
(int[] nums)
213 house robber 2/213 House Robber 2.java:2
Method
romanToInt
(String s)
13 Roman to Integer/13 Roman to Integer.java:30
Method
rotate
(int[][] matrix)
48 Rotate Image/48 Rotate Image.java:5
Method
search
(int[] nums, int target)
33 Search in Rotated Sorted Array/33 Search in Rotated Sorted Array.java:9
Method
search
(int[] nums, int target)
704 Binary Search/704 Binary Search.java:10
Method
search
(String word)
208 Implement Trie (Prefix Tree)/208 Implement Trie (Prefix Tree).java:73
Method
search
(String word)
211 Design Add and Search Words Data Structure/211 Design Add and Search Words Data Structure.java:55
Method
searchMatrix
(int[][] matrix, int target)
74 Search a 2D Matrix/74 Search a 2D Matrix.java:10
Method
searchRange
(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
Method
serialize
(TreeNode root)
297 Serialize and Deserialize Binary Tree/297 Serialize and Deserialize Binary Tree.java:20
Method
setZeroes
(int[][] matrix)
73 Set Matrix Zeroes/73 Set Matrix Zeroes.java:6
Method
shouldPrintMessage
Returns true if the message should be printed in the given timestamp, otherwise returns false.
359 Logger Rate Limiter/Logger Rate Limiter.java:21
Method
singleNumber
(int[] nums)
136 Single Number/136 Single Number.java:10
Method
solve
(char[][] board)
130 Surrounded Regions/130 Surrounded Regions.java:10
Method
solveNQueens
(int n)
51 N-Queens/51 N-Queens.java:10
Method
sortList
(ListNode head)
148 Sort List/148 Sort List.java:11
Method
spiralOrder
(int[][] matrix)
54 Spiral Matrix/54 Spiral Matrix.java:5
Method
subsets
(int[] nums)
78 Subsets/78 Subsets.java:11
Method
subsetsWithDup
(int[] nums)
90 Subsets II/90 Subsets II.java:11
Method
threeSum
(int[] nums)
15 3sum/15 3-Sum.java:6
Method
top
()
155 Min Stack/155 Min Stack.java:30
Method
topKFrequent
(int[] nums, int k)
347 Top K Frequent Elements/347 Top K Frequent Elements.java:9
Method
trap
(int[] height)
42 trapping rain water/42 Trapping Rain Water.java:2
Method
twoSum
(int[] numbers, int target)
167 two sum 2/167 two sum 2.java:6
Method
unfollow
(int id)
355 Design Twitter/355 Design Twitter.java:32
Method
unfollow
Follower unfollows a followee.
355 Design Twitter/355 Design Twitter.java:120
Method
uniquePaths
(int m, int n)
62 Unique Paths/62 Unique Paths.java:2
Method
validTree
(int n, int[][] edges)
261 Graph Valid tree/261 Graph Valid Tree.java:2
Method
wallsAndGates
(int[][] rooms)
286 Walls and gates/286 Walls and gates.java:16
Method
wordBreak
(String s, List<String> wordDict)
139 Word break/139 Word Break.java:2
← previous
201–291 of 291, ranked by callers