0% found this document useful (0 votes)
12 views5 pages

? Interview Question by CodeRuller

The document lists various coding interview questions categorized by data structures and algorithms, including arrays, strings, linked lists, trees, graphs, and dynamic programming. Each category contains specific problems along with their corresponding LeetCode problem numbers. This serves as a comprehensive guide for preparing for coding interviews.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views5 pages

? Interview Question by CodeRuller

The document lists various coding interview questions categorized by data structures and algorithms, including arrays, strings, linked lists, trees, graphs, and dynamic programming. Each category contains specific problems along with their corresponding LeetCode problem numbers. This serves as a comprehensive guide for preparing for coding interviews.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

🚀 Interview Question by CodeRuller

📘 Array / String

 Merge Sorted Array — #88


 Remove Element — #27
 Remove Duplicates from Sorted Array — #26
 Remove Duplicates from Sorted Array II — #80
 Majority Element — #169
 Rotate Array — #189
 Best Time to Buy and Sell Stock — #121
 Best Time to Buy and Sell Stock II — #122
 Jump Game — #55
 Jump Game II — #45
 H-Index — #274
 Insert Delete GetRandom O(1) — #380
 Product of Array Except Self — #238
 Gas Station — #134
 Candy — #135
 Trapping Rain Water — #42

🔤 String
 Roman to Integer — #13
 Integer to Roman — #12
 Length of Last Word — #58
 Longest Common Prefix — #14
 Reverse Words in a String — #151
 Zigzag Conversion — #6
 Find the Index of the First Occurrence in a String — #28
 Text Justification — #68

👉 Two Pointers

 Valid Palindrome — #125


 Is Subsequence — #392
 Two Sum II - Input Array Is Sorted — #167
 Container With Most Water — #11
 3Sum — #15

🔥 Sliding Window

 Minimum Size Subarray Sum — #209


 Longest Substring Without Repeating Characters — #3
 Substring with Concatenation of All Words — #30
 Minimum Window Substring — #76

🧮 HashMap

 Ransom Note — #383


 Isomorphic Strings — #205
 Word Pattern — #290
 Valid Anagram — #242
 Group Anagrams — #49
 Two Sum — #1
 Happy Number — #202
 Contains Duplicate II — #219
 Longest Consecutive Sequence — #128

📊 Stack

 Valid Parentheses — #20


 Simplify Path — #71
 Min Stack — #155
 Evaluate Reverse Polish Notation — #150
 Basic Calculator — #224

🔗 Linked List

 Linked List Cycle — #141


 Add Two Numbers — #2
 Merge Two Sorted Lists — #21
 Copy List with Random Pointer — #138
 Reverse Linked List II — #92
 Reverse Nodes in k-Group — #25
 Remove Nth Node From End of List — #19
 Remove Duplicates from Sorted List II — #82
 Rotate List — #61
 Partition List — #86
 LRU Cache — #146

🌳 Binary Tree

 Maximum Depth of Binary Tree — #104


 Same Tree — #100
 Invert Binary Tree — #226
 Symmetric Tree — #101
 Construct Binary Tree from Preorder and Inorder Traversal — #105
 Construct Binary Tree from Inorder and Postorder Traversal — #106
 Populating Next Right Pointers in Each Node II — #117
 Flatten Binary Tree to Linked List — #114
 Path Sum — #112
 Sum Root to Leaf Numbers — #129
 Binary Tree Maximum Path Sum — #124
 Binary Search Tree Iterator — #173
 Count Complete Tree Nodes — #222
 Lowest Common Ancestor of a Binary Tree — #236

🌲 Binary Tree BFS

 Binary Tree Right Side View — #199


 Average of Levels in Binary Tree — #637
 Binary Tree Level Order Traversal — #102
 Binary Tree Zigzag Level Order Traversal — #103

🌿 Binary Search Tree

 Minimum Absolute Difference in BST — #530


 Kth Smallest Element in a BST — #230
 Validate Binary Search Tree — #98

🌐 Graph

 Number of Islands — #200


 Surrounded Regions — #130
 Clone Graph — #133
 Evaluate Division — #399
 Course Schedule — #207
 Course Schedule II — #210

🌐 Graph BFS

 Snakes and Ladders — #909


 Minimum Genetic Mutation — #433
 Word Ladder — #127

🌳 Trie

 Implement Trie (Prefix Tree) — #208


 Design Add and Search Words Data Structure — #211
 Word Search II — #212

🔁 Backtracking

 Letter Combinations of a Phone Number — #17


 Combinations — #77
 Permutations — #46
 Combination Sum — #39
 N-Queens II — #52
 Generate Parentheses — #22
 Word Search — #79

⚡ Divide & Conquer

 Convert Sorted Array to Binary Search Tree — #108


 Sort List — #148
 Construct Quad Tree — #427
 Merge k Sorted Lists — #23
 Maximum Subarray — #53
 Maximum Sum Circular Subarray — #918

🔍 Binary Search

 Search Insert Position — #35


 Search a 2D Matrix — #74
 Find Peak Element — #162
 Search in Rotated Sorted Array — #33
 Find First and Last Position of Element — #34
 Find Minimum in Rotated Sorted Array — #153
 Median of Two Sorted Arrays — #4

⚡ Heap

 Kth Largest Element in an Array — #215


 IPO — #502
 Find K Pairs with Smallest Sums — #373
 Find Median from Data Stream — #295

💡 Bit Manipulation

 Add Binary — #67


 Reverse Bits — #190
 Number of 1 Bits — #191
 Single Number — #136
 Single Number II — #137
 Bitwise AND of Numbers Range — #201

🎯 Math

 Palindrome Number — #9
 Plus One — #66
 Factorial Trailing Zeroes — #172
 Sqrt(x) — #69
 Pow(x, n) — #50
 Max Points on a Line — #149
🧮 1D DP

 Climbing Stairs — #70


 House Robber — #198
 Word Break — #139
 Coin Change — #322
 Longest Increasing Subsequence — #300

🧮 Multidimensional DP

 Triangle — #120
 Minimum Path Sum — #64
 Unique Paths II — #63
 Longest Palindromic Substring — #5
 Interleaving String — #97
 Edit Distance — #72
 Best Time to Buy and Sell Stock III — #123
 Best Time to Buy and Sell Stock IV — #188
 Maximal Square — #221

You might also like