All Posts

Rotate Array Problem

LeetCode 189. Given an array, rotate the array to the...

Reverse Words In A String Problem

LeetCode 151. Given an input string s, reverse the order...

Reverse Bits Problem

LeetCode 190. Reverse bits of a given 32 bits unsigned...

Repeated DNA Sequences Problem

LeetCode 187. The DNA sequence is composed of a series...

Number Of 1 Bits Problem

LeetCode 191. Write a function that takes an unsigned integer...

Min Stack Problem

LeetCode 155. Design a stack that supports push, pop, top,...

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