摘要: 104. Maximum Depth of Binary Tree Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from th 阅读全文
posted @ 2016-09-13 12:01 花椰菜菜菜菜 阅读(182) 评论(0) 推荐(0) 编辑
摘要: 102. 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 l 阅读全文
posted @ 2016-09-13 11:18 花椰菜菜菜菜 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 101. Symmetric Tree Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2, 阅读全文
posted @ 2016-09-12 11:38 花椰菜菜菜菜 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 100. Same Tree Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structura 阅读全文
posted @ 2016-09-11 11:08 花椰菜菜菜菜 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 88. Merge Sorted Array Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note:You may assume that nums1 has 阅读全文
posted @ 2016-09-11 10:34 花椰菜菜菜菜 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 83. Remove Duplicates from Sorted List Given a sorted linked list, delete all duplicates such that each element appear only once. For example,Given 1- 阅读全文
posted @ 2016-09-09 22:15 花椰菜菜菜菜 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 70. Climbing Stairs You are climbing a stair case. It takes n steps to reach to the top. Each time you can either climb 1 or 2 steps. In how many dist 阅读全文
posted @ 2016-09-09 21:58 花椰菜菜菜菜 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 67. Add Binary Given two binary strings, return their sum (also a binary string). For example,a = "11"b = "1"Return "100". 两个字符串存储二进制数,进行二进制加法,返回相加之后的 阅读全文
posted @ 2016-09-09 16:48 花椰菜菜菜菜 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 66. Plus One Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored such that the most significa 阅读全文
posted @ 2016-09-09 11:48 花椰菜菜菜菜 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 58. Length of Last Word Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the 阅读全文
posted @ 2016-09-09 11:16 花椰菜菜菜菜 阅读(146) 评论(0) 推荐(0) 编辑