RECENTLY ASKED COMPANY WISE SORTED
LEETCODE QUESTIONS
By
INTERVIEW AALA
ADOBE
Question Name Prerequisites
1047. Remove All Adjacent STACK
Duplicates In String
1297. Maximum Number of STRING
Occurrences of a
Substring
516. Longest Palindromic DP
Subsequence
Intersecting Chords in a DP
Circle
743. Network Delay Time DIJKSTRA , GRAPH, BELLMAN FORD
46. Permutations BACKTRACKING
53. Maximum Subarray DP
44. Wildcard Matching DP
AMAZON
Question Name Prerequisites
572. Subtree of Another DFS, RECURSION, DFS
Tree
138. Copy List with LINKED LIST, MAP
Random Pointer
21. Merge Two Sorted Lists LINKED LIST, RECURSION
MAP, SET
Two Sum - Unique Pairs
74. Search a 2D Matrix ARRAYS, BINARY SEARCH
1423. Maximum Points You DP, SLIDING WINDOW, ARRAYS
Can Obtain from Cards
224. Basic Calculator STACK, MATH
URLify a given string ARRAYS, STRING
(replace spaces with %20
953. Verifying an Alien MAP
Dictionary
1143. Longest Common DP
Subsequence
1155. Number of Dice Rolls DP
With Target Sum
560. Subarray Sum Equals MAP, PREFIX SUM
K
Amazon | OA 2019 | MAP, STRING
Favorite Genres
1192. Critical Connections DFS, TARJAN’S ALGO
in a Network
20. Valid Parentheses STRING, STACK
1326. Minimum Number of
Taps to Open to Water a GREEDY, DP
Garden
CISCO
Question Name Prerequisites
54. Spiral Matrix ARRAYS
909. Snakes and Ladders BFS
1235. Maximum Profit in BINARY SEARCH, DYNAMIC PROGRAMMING, SORT
Job Scheduling
207. Course Schedule DFS , BFS , GRAPH, TOPOLOGICAL SORT
529. Minesweeper DFS, BFS
153. Find Minimum in BINARY SEARCH
Rotated Sorted Array
559. Maximum Depth of BFS ,DFS
N-ary Tree
CURE FIT
Question Name Prerequisites
1553. Minimum Number of DP
Days to Eat N Oranges
115. Distinct Subsequences STRINGS, DP
1482. Minimum Number of ARRAYS, BINARY SEARCH
Days to Make m Bouquets
258. Add Digits MATH
417. Pacific Atlantic Water DFS, BFS
Flow
FLIPKART
Question Name Prerequisites
31. Next Permutation ARRAYS
Binary numbers STRING MANIPULATION
483. Smallest Good Base BINARY SEARCH
1489. Find Critical and KRUSKAL, MST, DSU
Pseudo-Critical Edges in
Minimum Spanning Tree
56. Merge Intervals ARRAYS, SORT
637. Average of Levels in BFS
Binary Tree
1334. Find the City With GRAPH, FLOYD WARSHALL
the Smallest Number of
Neighbors at a Threshold
Distance
MICROSOFT
Question Name Prerequisites
Min Adjacent Swaps to
Make Palindrome 2 POINTERS, STRING
Maximum value at index k BINARY SEARCH
Number of warships DEQUE
829. Consecutive MATH
Numbers Sum
Product of Palindromes
DP
Activate Fountain GREEDY , TWO POINTER
1856. Maximum Subarray STACK
Min-Product
1008. Construct Binary TREE
Search Tree from Preorder
Traversal
JPMC
Question Name Prerequisites
442. Find All Duplicates in
an Array MAP, ARRAY
404. Sum of Left Leaves BFS, DFS, BINARY TREES
Number of distinct DP
subsequences
871. Minimum Number of HEAP , DP
Refueling Stops
MORGAN STANLEY
Question Name Prerequisites
525. Contiguous Array HASHMAP
1143. Longest Common
Subsequence DP
149. Max Points on a Line ANNOYING MATH
164. Maximum Gap ARRAYS, LINEAR TIME SORTING
200. Number of Islands DFS, BFS , UNION FIND
238. Product of Array ARRAY
Except Self
309. Best Time to Buy and DP
Sell Stock with Cooldown
815. Bus Routes BFS
201. Bitwise AND of BIT MANIPULATION
Numbers Range
PAYPAL
Question Name Prerequisites
1220. Count Vowels DP
Permutation
Interview question BRUTE FORCE
1197.Minimum-Knight-Mo BFS, DFS
ves
1010. Pairs of Songs With MAP
Total Durations Divisible
by 60
Office Building placement BFS
535. Encode and Decode MAP, MATH
Tiny URL
27. Remove Element TWO POINTERS, ARRAYS
318. Maximum Product of
Word Lengths BIT MANIPULATION
PHONE PE
Question Name Prerequisites
1186. Maximum Subarray ARRAYS , DP
Sum with One Deletion
Median of all non-empty DP
subset sums
1498. Number of SLIDING WINDOW
Subsequences That Satisfy
the Given Sum Condition
833. Find And Replace in STRING
String
554. Brick Wall MAP
SAP LABS
Question Name Prerequisites
Sorted Arrangements SEGMENT TREE
1004. Max Consecutive SLIDING WINDOW, STRING
Ones III
1177. Can Make Palindrome PREFIX SUM
from Substring
63. Unique Paths II DP
City Attractions DFS
221. Maximal Square DP
696. Count Binary STRING
Substrings
741. Cherry Pickup DP, BACKTRACKING
SWIGGY
Question Name Prerequisites
Prison Break ARRAYS
300. Longest Increasing DP
Subsequence
123. Best Time to Buy and DP
Sell Stock III
354. Russian Doll BINARY SEARCH
Envelopes
45. Jump Game II GREEDY
VM WARE
Question Name Prerequisites
322. Coin Change DP, ARRAYS
724. Find Pivot Index ARRAYS
209. Minimum Size TWO POINTER
Subarray Sum
WALMART LABS
Question Name Prerequisites
Longest subsequence
which matches the regex DP
0*1*0*1*
1081. Smallest
Subsequence of Distinct STRINGS, STACK, GREEDY
Characters
1310. XOR Queries of a BIT MANIPULATION
Subarray
630. Course Schedule III GREEDY
WELLS FARGO
Question Name Prerequisites
357. Count Numbers with
Unique Digits MATH, DP
1456. Maximum Number SLIDING WINDOW, STRING
of Vowels in a Substring of
Given Length
198. House Robber DP
FOR MORE CODING INTERVIEWS
RELATED CONTENT,
YOU CAN CONSIDER SUBSCRIBING
TO THE CHANNEL
INTERVIEW AALA