原创 #64 Merge Sorted Array

題目描述: Given two sorted integer arrays A and B, merge B into A as one sorted array.  Notice You may assume that A

原创 #68 Binary Tree Postorder Traversal

題目描述: Given a binary tree, return the postorder traversal of its nodes' values. Have you met this question in a r

原创 #47 Majority Number II

題目描述: Given an array of integers, the majority number is the number that occurs more than 1/3 of the size of the ar

原创 #67 Binary Tree Inorder Traversal

題目描述: Given a binary tree, return the inorder traversal of its nodes' values. Have you met this question in a rea

原创 #50 Product of Array Exclude Itself

題目描述: Given an integers array A. Define B[i] = A[0] * ... * A[i-1] * A[i+1] * ... * A[n-1], calculate BWITHOUT divid

原创 #55 Compare Strings

題目描述: Compare two strings A and B, determine whether A contains all of the characters in B. The characters in string

原创 #52 Next Permutation

題目描述: Given a list of integers, which denote a permutation. Find the next permutation in ascending order.  Notice

原创 #58 4Sum

題目描述: Given an array S of n integers, are there elements a, b, c, andd in S such that a + b + c + d = target? Find

原创 #69 Binary Tree Level Order Traversal

題目描述: Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by

原创 #71 Binary Tree Zigzag Level Order Traversal

題目描述: Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, t

原创 #70 Binary Tree Level Order Traversal II

題目描述: Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right

原创 #45 Maximum Subarray Difference

題目描述: Given an array with integers. Find two non-overlapping subarrays A and B, which|SUM(A) - SUM(B)| is the large

原创 #46 Majority Number

題目描述: Given an array of integers, the majority number is the number that occurs more than half of the size of the a

原创 #57 3Sum

題目描述: Given an array S of n integers, are there elements a, b, c in Ssuch that a + b + c = 0? Find all unique tripl

原创 #66 Binary Tree Preorder Traversal

題目描述: Given a binary tree, return the preorder traversal of its nodes' values. Have you met this question in a rea