All Posts

Maximum Product Subarray Problem

LeetCode 152. Given an integer array nums, find a contiguous...

Maximum Gap Problem

LeetCode 164. Given an integer array nums, return the maximum...

Majority Element Problem

LeetCode 169. Given an array nums of size n, return...

Largest Number Problem

LeetCode 179. Given a list of non-negative integers nums, arrange...

Intersection Of Two Linked Lists Problem

LeetCode 160. Given the heads of two singly linked-lists headA...

House Robber Problem

LeetCode 198. You are a professional robber planning to rob...

Fraction To Recurring Decimal Problem

LeetCode 166. Given two integers representing the numerator and denominator...


Find Peak Element Problem

LeetCode 162. A peak element is an element that is...

Find Minimum In Rotated Sorted Array Problem

LeetCode 153. Suppose an array of length n sorted in...

Find Minimum In Rotated Sorted Array II Problem

LeetCode 154. Suppose an array of length n sorted in...

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