All Posts

Factorial Trailing Zeroes Problem

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

Excel Sheet Column Title Problem

LeetCode 168. Given an integer columnNumber, return its corresponding column...

Excel Sheet Column Number Problem

LeetCode 171. Given a string columnTitle that represents the column...

Dungeon Game Problem

LeetCode 174. The demons had captured the princess and imprisoned...

Compare Version Numbers Problem

LeetCode 165. Given two version numbers,version1 and version2, compare them....

Binary Tree Right Side View Problem

LeetCode 199. Given the root of a binary tree, imagine...


Binary Search Tree Iterator Problem

LeetCode 173. Implement the BSTIterator class that represents an iterator...

Best Time To Buy And Sell Stock IV Problem

LeetCode 188. You are given an integer array prices where...

Word Break Problem

LeetCode 139. Given a string s and a dictionary of...

Word Break II Problem

LeetCode 140. Given a string s and a dictionary of...

Sort List Problem

LeetCode 148. Given the head of a linked list, return...

Single Number Problem

LeetCode 136. Given a non-empty array of integers nums, every...

Single Number II Problem

LeetCode 137. Given an integer array nums whereevery element appears...

Reorder List Problem

LeetCode 143. You are given the head of a singly...


Palindrome Partitioning Problem

LeetCode 131. Given a string s, partition s such that...

Palindrome Partitioning II Problem

LeetCode 132. Given a string s, partition s such that...