Mostly Asked Leetcode

Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 10

Mostly Asked Technical Interview questions

S.No. LeetCode Problems Topic


1 Two Sum Array
2 Two Sum - II Array
3 Contains Duplicate Array
4 Contains Duplicate II Array
5 Best Time to Buy and Sell Stock Array
6 Maximum Product Subarray Array
7 Search in Rotated Sorted Array Array
8 3 Sum Array
9 Container With Most Water Array
10 Trapping Rain Water Array
11 Median of Two Sorted Arrays Array

12 Set Matrix Zeroes Matrix


13 Spiral Matrix Matrix
14 Rotate Image Matrix
15 Longest Increasing Path in a Matrix Matrix
16 Word Search Matrix
17 Valid Sudoku Matrix
18 Game of Life Matrix

19 Valid Palindrome Two Pointers


20 Two Sum II Input Array Is Sorted Two Pointers
21 3Sum Two Pointers
22 Container With Most Water Two Pointers
23 Trapping Rain Water Two Pointers

24 Add Two Numbers Linked List


25 Reverse a Linked List Linked List
26 Detect Cycle in a Linked List Linked List
27 Merge Two Sorted Lists Linked List
28 Merge K Sorted Lists Linked List
29 Remove Nth Node From End Of List Linked List
30 Reorder List Linked List
31 Middle of the Linked-List Linked List
32 Flatten Binary Tree to Linked List Linked List
33 Reverse Nodes in k-Group Linked List
34 Merge Sorted Array Sorting
35 Largest Number Sorting
36 Sort List Sorting
37 Sort Colors Sorting
38 Majority Element Sorting
39 Longest Substring Without Repeating Characters String

40 Longest Repeating Character Replacement String


41 Fizz Buzz String
42 Longest Common Prefix String
43 Minimum Window Substring String
44 Valid Anagram String
45 Group Anagrams String
45 Valid Parentheses String
46 Valid Palindrome String
47 Longest Palindromic Substring String
48 Letter Combinations of a Phone Number String
49 Palindromic Substrings String
50 Encode and Decode Strings (Leetcode Premium) String
51 Palindrome Linked List String
52 Text Justification String
53 Letter Combinations of a Phone Number String
54 Palindromic Substrings String
55 Encode and Decode Strings (Leetcode Premium) String
56 Palindrome Linked List String
57 Text Justification String

58 Min Stack Stack


59 Largest Rectangle in Histogram Stack
60 Minimum Remove to Make Valid Parentheses Stack
61 Longest Valid Parentheses Stack
62 Max Stack Stack
63 Valid Parentheses Stack
64 Min Stack Stack
65 Evaluate Reverse Polish Notation Stack
66 Generate Parentheses Stack
67 Daily Temperatures Stack
68 Car Fleet Stack
69 Largest Rectangle In Histogram Stack

70 Kth Largest Element In a Stream Heap


71 Last Stone Weight Heap
72 K Closest Points to Origin Heap
73 Kth Largest Element In An Array Heap
74 Task Scheduler Heap
75 Design Twitter Heap
76 Find Median From Data Stream Heap

77 Invert Binary Tree Trees


78 Maximum Depth of Binary Tree Trees
79 Diameter of Binary Tree Trees
80 Balanced Binary Tree Trees
81 Same Tree Trees
82 Subtree of Another Tree Trees
83 Lowest Common Ancestor of a Binary Search Tree Trees
84 Binary Tree Level Order Traversal Trees
85 Binary Tree Right Side View Trees
86 Count Good Nodes In Binary Tree Trees
87 Validate Binary Search Tree Trees
88 Kth Smallest Element In a Bst Trees
89 Construct Binary Tree From Preorder And Inorder TraversalTrees
90 Binary Tree Maximum Path Sum Trees
91 Serialize And Deserialize Binary Tree Trees
92 Binary Tree Zigzag Level Order Traversal Tree
93 Implement Trie (Prefix Tree) Tree
94 Add and Search Word Trie
95 Word Search II Trie

Let's Code it, Let's Crack it - Dheeraj & Arvind Sharm


w questions
Difficulty
Easy
Medium
Easy
Easy
Easy
Medium
Medium
Medium
Medium
Hard
Hard

Medium
Medium
Medium
Hard
Medium
Medium
Medium

Easy
Medium
Medium
Medium
Hard

Medium
Easy
Easy
Easy
Hard
Medium
Medium
Easy
Medium
Hard
Easy
Medium
Medium
Medium
Easy
Medium

Medium
Easy
Easy
Hard
Easy
Medium
Easy
Easy
Medium
Medium
Medium
Medium
Easy
Hard
Medium
Medium
Medium
Easy
Hard

Medium
Hard
Medium
Hard
Hard
Medium
Medium
Medium
Medium
Medium
Medium
Hard

Easy
Easy
Medium
Medium
Medium
Medium
Hard

Easy
Easy
Easy
Easy
Easy
Easy
Medium
Medium
Medium
Medium
Medium
Medium
Medium
Hard
Hard
Medium
Medium
Medium
Hard

& Arvind Sharma


Mostly Asked Graph & DP Problems
S.No. LeetCode Problems Topic
1 Course Schedule Graphs
2 Course Schedule II Graphs
3 Redundant Connection Graphs
4 Number of Connected Components In An Undirected Graph Graphs
5 Graph Valid Tree Graphs
6 Word Ladder Graphs
7 Reconstruct Itinerary Graphs
8 Number of Islands Graphs
9 Clone Graph Graphs
10 Max Area of Island Graphs
11 Pacific Atlantic Water Flow Graphs
12 Surrounded Regions Graphs
13 Rotting Oranges Graphs
14 Walls And Gates Graphs
15 Min Cost to Connect All Points Graphs
16 Network Delay Time Graphs
17 Swim In Rising Water Graphs
18 Alien Dictionary Graphs
19 Cheapest Flights Within K Stops Graphs

20 Coin Change DP
21 Coin Change II DP
22 Climbing Stairs DP
23 House Robber DP
24 House Robber II DP
25 Jump Game DP
26 Jump Game II DP
27 Longest Increasing Subsequence DP
28 Longest Common Subsequence DP
29 Word Break Problem DP
30 Combination Sum DP
34 Decode Ways DP
35 Unique Paths DP
36 Pascal's Triangle DP
37 Regular Expression Matching DP
38 Race Car DP
39 Min Cost Climbing Stairs DP
40 Palindromic Substrings DP
45 Maximum Product Subarray DP
46 Longest Increasing Path In a Matrix DP
47 Generate Parentheses DP
48 Longest Valid Paranthesis DP
49 Valid Parenthesis String DP
50 Edit Distance DP
51 Partition Equal Subset Sum DP
52 Unique Paths DP
53 Best Time To Buy and Sell Stocks DP
54 Best Time To Buy and Sell Stocks II DP
55 Best Time To Buy and Sell Stocks III DP
56 Best Time To Buy and Sell Stocks IV DP
57 Target Sum DP
58 Interleaving String DP
59 Regular Expression Matching DP
60 Partition Labels DP
61 Distinct Subsequences DP
62 Burst Balloons DP
63 Maximum Subarray DP
64 Gas Station DP
65 Hand of Straights DP
66 Merge Triplets to Form Target Triplet DP
67 Uncrossed Lines DP
68 Split Array Largest Sum DP
69 Minimum Number of Removals to Make Mountain Array DP
70 Minimum Difference in Sums After Removal of Elements DP
71 Number Of Dice Rolls With Target Sum DP
72 WildCard Matching DP
73 Perfect Squares DP
74 DP
Partition Array Into Two Arrays to Minimize Sum Difference
75 Minimum insertions to make string palindrome DP

Let's Code it, Let's Crack it - Dheeraj & Arvind Sharma


blems
Difficulty
Medium
Medium
Medium
Medium
Medium
Hard
Hard
Medium
Medium
Medium
Medium
Medium
Medium
Medium
Medium
Medium
Hard
Hard
Medium

Medium
Medium
Easy
Medium
Medium
Medium
Medium
Medium
Medium
Medium
Medium
Medium
Medium
Easy
Hard
Hard
Easy
Medium
Medium
Hard
Medium
Hard
Medium
Medium
Medium
Medium
Easy
Medium
Hard
Hard
Medium
Medium
Hard
Medium
Hard
Hard
Medium
Medium
Medium
Medium
Hard
Hard
Hard
Hard
Medium
Hard
Medium
Hard
Hard

Arvind Sharma

You might also like