All Posts

Surrounded Regions Problem

LeetCode 130. Given an m x n matrix board containing...

Sum Root To Leaf Numbers Problem

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

Populating Next Right Pointers In Each Node Problem

LeetCode 116. You are given a perfect binary tree where...

Populating Next Right Pointers In Each Node II Problem

LeetCode 117. Given a binary tree, populate each next pointer...

Path Sum Problem

LeetCode 112. Given the root of a binary tree and...

Path Sum II Problem

LeetCode 113. Given the root of a binary tree and...

Pascal's Triangle Problem

LeetCode 118. Given an integer numRows, return the first numRows...


Pascal's Triangle II Problem

LeetCode 119. Given an integer rowIndex, return the rowIndex^th (0-indexed)...

Minimum Depth Of Binary Tree Problem

LeetCode 111. Given a binary tree, find its minimum depth....

Longest Consecutive Sequence Problem

LeetCode 128. Given an unsorted array of integers nums, return...

Flatten Binary Tree To Linked List Problem

LeetCode 114. Given the root of a binary tree, flatten...

Distinct Subsequences Problem

LeetCode 115. Given two strings s and t, return the...

Best Time To Buy And Sell Stock Problem

LeetCode 121. You are given an array prices where prices[i]...


Best Time To Buy And Sell Stock Iii Problem

LeetCode 123. You are given an array prices where prices[i]...