All Posts

Recover Binary Search Tree Problem

LeetCode 99. You are given the root of a binary...

Interleaving String Problem

LeetCode 97. Given strings s1, s2, and s3, find whether...

Word Search Problem

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

Unique Binary Search Trees Problem

LeetCode 96. Given an integer n, return the number of...

Unique Binary Search Trees II Problem

LeetCode 95. Given an integer n, return all the structurally...

Subsets Problem

LeetCode 78. Given an integer array nums of unique elements,...

Subsets II Problem

LeetCode 90. Given an integer array nums that may contain...

Search in Rotated Sorted Array II Problem

LeetCode 81. There is an integer array nums sorted in...


Scramble String Problem

LeetCode 87. Given two strings s1 and s2 of the...

Restore IP Addresses Problem

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

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