Top 100 Most Asked Array Questions in Interview

10268
Nov 08, 2023
Two Sum: https://leetcode.com/problems/two-sum/
Container With Most Water: https://leetcode.com/problems/container-with-most-water/
3Sum: https://leetcode.com/problems/3sum/
4Sum: https://leetcode.com/problems/4sum/
Trapping Rain Water: https://leetcode.com/problems/trapping-rain-water/
Best Time to Buy and Sell Stock: https://leetcode.com/problems/best-time-to-buy-and-sell-stock/
Best Time to Buy and Sell Stock II: https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/
Best Time to Buy and Sell Stock III: https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii/
Product of Array Except Self: https://leetcode.com/problems/product-of-array-except-self/
Maximum Subarray: https://leetcode.com/problems/maximum-subarray/
Maximum Product Subarray: https://leetcode.com/problems/maximum-product-subarray/
Spiral Matrix: https://leetcode.com/problems/spiral-matrix/
Rotate Image: https://leetcode.com/problems/rotate-image/
Search in Rotated Sorted Array: https://leetcode.com/problems/search-in-rotated-sorted-array/
Search in Rotated Sorted Array II: https://leetcode.com/problems/search-in-rotated-sorted-array-ii/
Search for a Range: https://leetcode.com/problems/search-for-a-range/
Median of Two Sorted Arrays: https://leetcode.com/problems/median-of-two-sorted-arrays/
Find Peak Element: https://leetcode.com/problems/find-peak-element/
Search a 2D Matrix: https://leetcode.com/problems/search-a-2d-matrix/
Search a 2D Matrix II: https://leetcode.com/problems/search-a-2d-matrix-ii/
Game of Life: https://leetcode.com/problems/game-of-life/
Combination Sum: https://leetcode.com/problems/combination-sum/
Combination Sum II: https://leetcode.com/problems/combination-sum-ii/
Subsets: https://leetcode.com/problems/subsets/
Subsets II: https://leetcode.com/problems/subsets-ii/
Largest Rectangle in Histogram: https://leetcode.com/problems/largest-rectangle-in-histogram/
Next Permutation: https://leetcode.com/problems/next-permutation/
Permutations: https://leetcode.com/problems/permutations/
Permutations II: https://leetcode.com/problems/permutations-ii/
Substring with Concatenation of All Words: https://leetcode.com/problems/substring-with-concatenation-of-all-words/
Jump Game: https://leetcode.com/problems/jump-game/
Jump Game II: https://leetcode.com/problems/jump-game-ii/
Longest Consecutive Sequence: https://leetcode.com/problems/longest-consecutive-sequence/
Merge Intervals: https://leetcode.com/problems/merge-intervals/
Insert Interval: https://leetcode.com/problems/insert-interval/
Valid Sudoku: https://leetcode.com/problems/valid-sudoku/
Sudoku Solver: https://leetcode.com/problems/sudoku-solver/
N-Queens: https://leetcode.com/problems/n-queens/
N-Queens II: https://leetcode.com/problems/n-queens-ii/
Count of Smaller Numbers After Self: https://leetcode.com/problems/count-of-smaller-numbers-after-self/
Minimum Window Substring: https://leetcode.com/problems/minimum-window-substring/
Sliding Window Maximum: https://leetcode.com/problems/sliding-window-maximum/
Palindromic Substrings: https://leetcode.com/problems/palindromic-substrings/
Longest Palindromic Substring: https://leetcode.com/problems/longest-palindromic-substring/
Longest Valid Parentheses: https://leetcode.com/problems/longest-valid-parentheses/
Edit Distance: https://leetcode.com/problems/edit-distance/
Distinct Subsequences: https://leetcode.com/problems/distinct-subsequences/
Wildcard Matching: https://leetcode.com/problems/wildcard-matching/
Regular Expression Matching: https://leetcode.com/problems/regular-expression-matching/
Maximum Length of Repeated Subarray: https://leetcode.com/problems/maximum-length-of-repeated-subarray/
Longest Increasing Subsequence: https://leetcode.com/problems/longest-increasing-subsequence/
Longest Common Subsequence: https://leetcode.com/problems/longest-common-subsequence/
Longest Palindromic Subsequence: https://leetcode.com/problems/longest-palindromic-subsequence/
Maximum Subarray Sum with One Deletion: https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/
Valid Mountain Array: https://leetcode.com/problems/valid-mountain-array/
Minimum Path Sum: https://leetcode.com/problems/minimum-path-sum/
Find First and Last Position of Element in Sorted Array: https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/
Product of the Last K Numbers: https://leetcode.com/problems/product-of-the-last-k-numbers/
Find All Duplicates in an Array: https://leetcode.com/problems/find-all-duplicates-in-an-array/
Jump Game VI: https://leetcode.com/problems/jump-game-vi/
Range Sum of Sorted Subarray Sums: https://leetcode.com/problems/range-sum-of-sorted-subarray-sums/
Find K-th Smallest Pair Distance: https://leetcode.com/problems/find-k-th-smallest-pair-distance/
Partition Array into Disjoint Intervals: https://leetcode.com/problems/partition-array-into-disjoint-intervals/
Construct Binary Tree from Preorder and Inorder Traversal: https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/
Valid Palindrome III: https://leetcode.com/problems/valid-palindrome-iii/
Unique Paths III: https://leetcode.com/problems/unique-paths-iii/
Stone Game II: https://leetcode.com/problems/stone-game-ii/
Minimum Swaps to Make Sequences Increasing: https://leetcode.com/problems/minimum-swaps-to-make-sequences-increasing/
Largest Sum of Averages: https://leetcode.com/problems/largest-sum-of-averages/
Uncrossed Lines: https://leetcode.com/problems/uncrossed-lines/
Number of Music Playlists: https://leetcode.com/problems/number-of-music-playlists/
Minimum Falling Path Sum: https://leetcode.com/problems/minimum-falling-path-sum/
Minimum Domino Rotations For Equal Row: https://leetcode.com/problems/minimum-domino-rotations-for-equal-row/
Shortest Common Supersequence: https://leetcode.com/problems/shortest-common-supersequence/
Sum of Subarray Minimums: https://leetcode.com/problems/sum-of-subarray-minimums/
Maximum Points You Can Obtain from Cards: https://leetcode.com/problems/maximum-points-you-can-obtain-from-cards/
Remove Boxes: https://leetcode.com/problems/remove-boxes/
Unique Binary Search Trees: https://leetcode.com/problems/unique-binary-search-trees/
Count of Range Sum: https://leetcode.com/problems/count-of-range-sum/
Count of Smaller Numbers After Self: https://leetcode.com/problems/count-of-smaller-numbers-after-self/
Find K-th Smallest Pair Distance: https://leetcode.com/problems/find-k-th-smallest-pair-distance/
First Missing Positive: https://leetcode.com/problems/first-missing-positive/
Maximum Subarray Sum with One Deletion: https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/
4Sum II: https://leetcode.com/problems/4sum-ii/
Minimum Number of Arrows to Burst Balloons: https://leetcode.com/problems/minimum-number-of-arrows-to-burst-balloons/
Maximum Distance in Arrays: https://leetcode.com/problems/maximum-distance-in-arrays/
Find K Pairs with Smallest Sums: https://leetcode.com/problems/find-k-pairs-with-smallest-sums/
Race Car: https://leetcode.com/problems/race-car/
Minimum Cost to Merge Stones: https://leetcode.com/problems/minimum-cost-to-merge-stones/
Longest Well-Performing Interval: https://leetcode.com/problems/longest-well-performing-interval/
The Skyline Problem: https://leetcode.com/problems/the-skyline-problem/
Sliding Window Median: https://leetcode.com/problems/sliding-window-median/
Design Add and Search Words Data Structure: https://leetcode.com/problems/design-add-and-search-words-data-structure/
Data Stream as Disjoint Intervals: https://leetcode.com/problems/data-stream-as-disjoint-intervals/
Capacity To Ship Packages Within D Days: https://leetcode.com/problems/capacity-to-ship-packages-within-d-days/
Longest Subarray with Absolute Diff Less Than or Equal to Limit: https://leetcode.com/problems/longest-subarray-with-absolute-diff-less-than-or-equal-to-limit/
Minimum Cost For Tickets: https://leetcode.com/problems/minimum-cost-for-tickets/
Shortest Path in Binary Matrix: https://leetcode.com/problems/shortest-path-in-binary-matrix/
Minimum Cost Tree From Leaf Values: https://leetcode.com/problems/minimum-cost-tree-from-leaf-values/
Longest Increasing Subsequence III: https://leetcode.com/problems/longest-increasing-subsequence-iii/
Comments (1)