All Posts

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...

Combinations Problem

LeetCode 77. Given two integers n and k, return all...

Valid Number Problem

LeetCode 65. Given a string s, return true if s...

Unique Paths Problem

LeetCode 62. A robot is located at the top-left corner...

Unique Paths II Problem

LeetCode 63. A robot is located at the top-left corner...

Text Justification Problem

LeetCode 68. Given an array of strings words and a...


Rotate List Problem

LeetCode 61. Given the head of a linked list, rotate...