106. Construct Binary Tree from Inorder and Postorder Traversal

#Problem description:

Given inorder and postorder traversal of a tree, construct the binary tree.

Note:
You may assume that duplicates do not exist in the tree.

Readmore

523. Continuous Subarray Sum

Problem description:

/
Given a list of non-negative numbers and a target integer k, write a function to check if the array has a continuous subarray of size at least 2 that sums up to the multiple of k, that is, sums up to n
k where n is also an integer.

Readmore

75. Sort Colors

Problem description:

Given an array with n objects colored red, white or blue, sort them in-place so that objects of the same color are adjacent, with the colors in the order red, white and blue.

Readmore

119. Pascal's Triangle II

#Problem description:

Given a non-negative index k where k ≤ 33, return the kth index row of the Pascal’s triangle.

Note that the row index starts from 0.

Readmore

717. 1-bit and 2-bit Characters

Problem description:

We have two special characters. The first character can be represented by one bit 0. The second character can be represented by two bits (10 or 11).

Readmore

236. Lowest Common Ancestor of a Binary Tree

Problem description:

Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree.

Readmore

654. Maximum Binary Tree

Problem description:

Given an integer array with no duplicates. A maximum tree building on this array is defined as follow:

Readmore

127. Word Ladder

Problem description:

Given two words (beginWord and endWord), and a dictionary’s word list, find the length of shortest transformation sequence from beginWord to endWord, such that:

Readmore

200. Number of Islands

Problem description:

Given a 2d grid map of ‘1’s (land) and ‘0’s (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assume all four edges of the grid are all surrounded by water.

Readmore

102. Binary Tree Level Order Traversal

Problem description:

Given a binary tree, return the level order traversal of its nodes’ values. (ie, from left to right, level by level).

Readmore