All Posts

Remove Duplicates from Sorted List Problem

LeetCode 83. Given the head of a sorted linked list,...

Remove Duplicates from Sorted List II Problem

LeetCode 82. Given the head of a sorted linked list,...

Remove Duplicates from Sorted Array II Problem

LeetCode 80. Given an integer array nums sorted in non-decreasing...

Partition List Problem

LeetCode 86. Given the head of a linked list and...

Merge Sorted Array Problem

LeetCode 88. You are given two integer arrays nums1 and...

Maximal Rectangle Problem

LeetCode 85. Given a rows x cols binary matrix filled...

Largest Rectangle in Histogram Problem

LeetCode 84. Given an array of integers heights representing the...

Gray Code Problem

LeetCode 89. Given an integer n, return any valid n-bit...


Decode Ways Problem

LeetCode 91. Given a string s containing only digits, return...

Binary Tree Inorder Traversal Problem

LeetCode 94. Given an m x n grid of characters...

Sort Colors Problem

LeetCode 75. Given an array nums with n objects colored...

Simplify Path Problem

LeetCode 71. Given a string path, which is an absolute...

Set Matrix Zeroes Problem

LeetCode 73. Given an m x n integer matrix matrix,...

Search A 2D Matrix Problem

LeetCode 74. Write an efficient algorithm that searches for a...

Minimum Window Substring Problem

LeetCode 76. Given two strings s and t of lengths...

Edit Distance Problem

LeetCode 72. Given two strings word1 and word2, return the...