All Posts

Bulls And Cows Problem

LeetCode 299. You are playing the Bulls and Cows game...

Bulb Switcher Problem

LeetCode 319. There are n bulbs that are initially off....

Bitwise And Of Numbers Range Problem

LeetCode 201. Given two integers left and right that represent...

Binary Tree Paths Problem

LeetCode 257. Given the root of a binary tree, return...

Best Time To Buy And Sell Stock With Cooldown Problem

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

Basic Calculator Problem

LeetCode 224. Given a string s representing a valid expression,...

Basic Calculator II Problem

LeetCode 227. Given a string s which represents an expression,...


Additive Number Problem

LeetCode 306. Additive number is a string whose digits can...

Add Digits Problem

LeetCode 258. Given an integer num, repeatedly add all its...

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