Array, a list of numbers. It’s quite normal and natural.

See all array tree problems: #array

- Review: Array/SubArray Problems
- LintCode: Take the element and query the sum
- LintCode: Swap Two Integers in Array
- LintCode: Sort Integers
- LintCode: Radar Detection
- LintCode: Max of 3 Numbers
- LintCode: Generate ArrayList with Given Size
- LintCode: Friend Request
- LintCode: Coin Problem
- LintCode: Calculate Maximum Value II
- LintCode: Array Maximum Value
- LeetCode: Valid Tic-Tac-Toe State
- LeetCode: Transpose Matrix
- LeetCode: The K Weakest Rows in a Matrix
- LeetCode: The k Strongest Values in an Array
- LeetCode: Summary Ranges
- LeetCode: Sum of Subsequence Widths
- LeetCode: Sum of Even Numbers After Queries
- LeetCode: Squirrel Simulation
- LeetCode: Sort Colors
- LeetCode: Sort Array By Parity II
- LeetCode: Single-Row Keyboard
- LeetCode: Shuffle the Array
- LeetCode: Shortest Word Distance III
- LeetCode: Shortest Word Distance
- LeetCode: Set Mismatch
- LeetCode: Score After Flipping Matrix
- LeetCode: Robot Bounded In Circle
- LeetCode: Remove Palindromic Subsequences
- LeetCode: Remove Comments
- LeetCode: Reduce Array Size to The Half
- LeetCode: Reconstruct a 2-Row Binary Matrix
- LeetCode: Rearrange Words in a Sentence
- LeetCode: Rank Transform of an Array
- LeetCode: Projection Area of 3D Shapes
- LeetCode: Product of Array Except Self
- LeetCode: Pour Water
- LeetCode: Perform String Shifts
- LeetCode: Pascal Triangle
- LeetCode: Number of Students Doing Homework at a Given Time
- LeetCode: Number of Squareful Arrays
- LeetCode: Number Of Corner Rectangles
- LeetCode: Non-decreasing Array
- LeetCode: N-Repeated Element in Size 2N Array
- LeetCode: Minimum Value to Get Positive Step by Step Sum
- LeetCode: Minimum Swaps to Make Strings Equal
- LeetCode: Minimum Subsequence in Non-Increasing Order
- LeetCode: Merge Sorted Array
- LeetCode: Maximum Swap
- LeetCode: Maximum Score After Splitting a String
- LeetCode: Maximum Points You Can Obtain from Cards
- LeetCode: Maximum of Absolute Value Expression
- LeetCode: Maximize Sum Of Array After K Negations
- LeetCode: Maximize Distance to Closest Person
- LeetCode: Max Increase to Keep City Skyline
- LeetCode: Max Consecutive Ones II
- LeetCode: Max Consecutive Ones
- LeetCode: Make Two Arrays Equal by Reversing Sub-arrays
- LeetCode: Magic Squares In Grid
- LeetCode: Longest Mountain in Array
- LeetCode: Lonely Pixel II
- LeetCode: Lonely Pixel I
- LeetCode: Lemonade Change
- LeetCode: Least Number of Unique Integers after K Removals
- LeetCode: Largest Number At Least Twice of Others
- LeetCode: Largest Divisible Subset
- LeetCode: Largest 1-Bordered Square
- LeetCode: Kids With the Greatest Number of Candies
- LeetCode: Island Perimeter
- LeetCode: Invalid Transactions
- LeetCode: Image Overlap
- LeetCode: High Five
- LeetCode: Height Checker
- LeetCode: Hand of Straights
- LeetCode: H-Index II
- LeetCode: H-Index
- LeetCode: Global and Local Inversions
- LeetCode: Flower Planting With No Adjacent
- LeetCode: Flipping an Image
- LeetCode: Fixed Point
- LeetCode: First Missing Positive
- LeetCode: Find the Town Judge
- LeetCode: Find Peak Element
- LeetCode: Find Lucky Integer in an Array
- LeetCode: Find Common Characters
- LeetCode: Filter Restaurants by Vegan-Friendly, Price and Distance
- LeetCode: Escape The Ghosts
- LeetCode: Duplicate Zeros
- LeetCode: Distinct Echo Substrings
- LeetCode: Distance Between Bus Stops
- LeetCode: Design Tic-Tac-Toe
- LeetCode: Design Log Storage System
- LeetCode: Design Browser History
- LeetCode: Degree of an Array
- LeetCode: Count Negative Numbers in a Sorted Matrix
- LeetCode: Count Largest Group
- LeetCode: Corporate Flight Bookings
- LeetCode: Consecutive Characters
- LeetCode: Compare Strings by Frequency of the Smallest Character
- LeetCode: Check If N and Its Double Exist
- LeetCode: Check If All 1’s Are at Least Length K Places Away
- LeetCode: Check If a Word Occurs As a Prefix of Any Word in a Sentence
- LeetCode: Check If a Number Is Majority Element in a Sorted Array
- LeetCode: Cells with Odd Values in a Matrix
- LeetCode: Car Fleet
- LeetCode: Bulb Switcher II
- LeetCode: Build an Array With Stack Operations
- LeetCode: Best Time to Buy and Sell Stock II
- LeetCode: Best Time to Buy and Sell Stock
- LeetCode: Best Sightseeing Pair
- LeetCode: Beautiful Arrangement II
- LeetCode: Average Salary Excluding the Minimum and Maximum Salary
- LeetCode: Array Nesting
- LeetCode: Arranging Coins
- LeetCode: Arithmetic Slices
- LeetCode: Alphabet Board Path
- LeetCode: Advantage Shuffle
- LeetCode: Add to Array-Form of Integer

Num | Problem | Summary |
---|---|---|

1 | Transpose Matrix | LeetCode: Transpose Matrix |

2 | Largest 1-Bordered Square | LeetCode: Largest 1-Bordered Square |

3 | Alphabet Board Path | LeetCode: Alphabet Board Path |

4 | Set Mismatch | LeetCode: Set Mismatch |

5 | Majority Element | LeetCode: Majority Element |

6 | Two pass for the array | Leetcode: Trapping Rain Water |

7 | Shuffle an Array | Leetcode: Shuffle an Array |

8 | Typically solved by a modified merge sort | Count Inversions in an array |

9 | hashmap vs hashset | Leetcode: Check If N and Its Double Exist |

10 | array + greedy | Leetcode: Valid Triangle Number |

11 | array + three pointer | Leetcode: Sort Colors |