LeetCode Problems
  • Introduction
  • Arrays
  • Simulation Array
    • Spiral Matrix I
    • Spiral Matrix II
    • Pascal's Triangle
    • Pascal's Triangle II
    • Diagonal Traverse
    • Anti Diagonals (IB)
  • Array Math
    • Product of Array Except Self
    • Min Steps in Infinite Grid (IB)
    • Plus One
    • Maximum Subarray
    • Maximum Product Subarray
    • Maximum Absolute Value Expression
    • Count Partitions (IB and CodeForces)
  • Repeat/Missing Numbers
    • First Missing Positive
    • Majority Element
    • Majority Element II
  • Arrangement
    • Largest Number
    • Rotate Image/Matrix
    • Flipping an Image
    • Next Permutation
  • Strings
    • String Simulation
      • Valid Palindrome I
      • Valid Palindrome II
      • Palindrome Permutation
      • Longest Palindrome
      • Longest Common Prefix
      • Implement strStr()
      • Ransom Note
      • Reverse String
      • Reverse Words in a String
      • Reverse Vowels of a String
      • Reverse Strings II
      • Reverse Words in a String III
      • Text Justification
    • String Math
      • Roman To Integer
      • Integer To Roman
      • Add Binary
      • Add Strings
      • Multiply Strings
    • String Parsing
      • String to Integer (atoi)
      • Subdomain Visit Count
  • Sliding Window
    • Maximum Average Subarray
    • Smallest Subarray with a given Sum
    • Longest Substring with K Distinct Characters
    • Fruits Into Baskets
    • Longest Substring Without Repeating Characters
    • Longest Repeating Character Replacement
    • Max Consecutive Ones I
    • Max Consecutive Ones III
    • Permutation in String
    • Subarray Product Less Than K
    • Subarray Sum Less Than K (IB)
  • Two Pointers
    • Remove Duplicates from Sorted Array I and II
    • Remove Element
    • Move Zeros
    • Squaring A Sorted Array
    • 3Sum
    • 3Sum Closest
    • 3Sum Smaller
    • Sort Colors (Dutch National Flag Problem)
    • Backspace String Compare
    • Shortest Unsorted Continuous Subarray (Minimum Window Sort)
    • Merge Two Sorted Arrays
    • Container With Most Water
    • Happy Number
  • Cyclic Sort
    • Missing Number
    • Find All Numbers Disappeared in an Array
    • Find the Duplicate Number
    • Find All Duplicate Numbers in an Array
  • Merge Intervals
    • Introduction
    • Merge Intervals
    • Insert Intveral
    • Interval List Intersection
    • Non-overlapping Intervals
    • Meeting Rooms
    • Employee Free Time
  • Backtracking
    • Backtracking Introduction
    • Subsets
    • Subsets II
    • Combinations
    • Combination Sum
    • Combination Sum II
    • Letter Combinations of a Phone Number
    • Palindrome Partitioning
    • Generate Parantheses
    • Permutations
  • Tree Breadth First Search
    • Binary Tree Level Order Traversal
    • Binary Tree Level Order Traversal II (Reverse Level Order Traversal)
    • Binary Tree Zigzag Traversal
    • Average of Levels in Binary Tree
    • Minimum Depth of Binary Tree
    • Maximum Depth of Binary Tree
    • Populating Next Right Pointers in Each Node
    • Binary Tree Right Side View
  • Tree Depth First Search
    • Path Sum
    • Path Sum II
    • Same Tree
  • Binary Search Trees
    • Validate Binary Search Trees
    • Kth Smallest Element in BST
    • Two-Sum BST
    • Convert Sorted Array to Binary Tree
    • Lowest Common Ancestor of Binary Search Tree
  • Graphs
    • Number of Islands
    • Max Area of Island
    • Island Perimeter
    • Number of Distinct Islands
    • Surrounded Regions
    • Walls and Gates
    • Rotting Oranges
    • As Far from Land as Possible
    • 01 Matrix
    • Shortest Path in Binary Matrix
    • Minimum Knight Moves
    • Shortest Bridge
    • Minesweeper
  • Dynamic Programming
    • 2D String Problems
      • Longest Common Subsequence
      • Palindromic Substrings
      • Longest Palindromic Substring
  • Top K Elements (Heap)
    • Top K Elements
    • Kth Largest Element in Array
    • K Closest Points to Origin
    • Top K Frequent Elements
    • Sort Characters by Frequency
  • Binary Search
    • Search in Rotated Sorted Array
    • Find First and Last Position of Element in Sorted Array
  • Hash Table
    • 4Sum
    • Subarray Sum Equals K
    • Group Anagrams
    • Valid Anagram
    • First Unique Character in String
    • Valid Sudoku
    • Contains Duplicates
    • Contains Duplicates II
  • Stack
    • Valid Parentheses
    • Evaluate Reverse Polish Notation
    • Basic Calculator
    • Basic Calculator II
  • Linked Lists
    • Reverse a Linked List
    • Reverse Linked List II (Reverse a Sub-list)
  • Math
    • Divide Two Integers
    • Fraction to Recurring Decimal
Powered by GitBook
On this page

Was this helpful?

Simulation Array

Spiral Matrix ISpiral Matrix IIPascal's TrianglePascal's Triangle IIDiagonal TraverseAnti Diagonals (IB)
PreviousIntroductionNextSpiral Matrix I

Last updated 4 years ago

Was this helpful?