072.Edit Distance

Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)

Read More

312.Burst Balloons

Given n balloons, indexed from 0 to n-1. Each balloon is painted with a number on it represented by array nums. You are asked to burst all the balloons. If the you burst balloon i you will get nums[left] nums[i] nums[right] coins. Here left and right are adjacent indices of i. After the burst, the left and right then becomes adjacent.

Read More

95. Unique Binary Search Trees II

Given an integer n, generate all structurally unique BST’s (binary search trees) that store values 1…n.

Read More

96. Unique Binary Search Trees

Given n, how many structurally unique BST’s (binary search trees) that store values 1…n?

Read More

161.One Edit Distance

Given two strings S and T, determine if they are both one edit distance apart.

Read More

404. Sum of Left Leaves

Find the sum of all left leaves in a given binary tree.

Read More

132.Palindrome Partitioning II

Given a string s, partition s such that every substring of the partition is a palindrome.

Read More

131. Palindrome Partitioning

Given a string s, partition s such that every substring of the partition is a palindrome.

Read More

077.Combinations

Given two integers n and k, return all possible combinations of k numbers out of 1 … n.

Read More

047.Permutations II

Given a collection of numbers that might contain duplicates, return all possible unique permutations.

Read More

046.Permutations

Given a collection of distinct numbers, return all possible permutations.

Read More

090. Subsets II

Given a collection of integers that might contain duplicates, nums, return all possible subsets.

Read More

078.Subsets

Given a set of distinct integers, nums, return all possible subsets.

Read More

190. Reverse Bits

Reverse bits of a given 32 bits unsigned integer.

Read More

264.Ugly Number II

Write a program to find the n-th ugly number.

Read More