自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(20)
  • 问答 (1)
  • 收藏
  • 关注

原创 由遍历序列构造二叉树

由遍历序列构造二叉树

2016-07-31 23:32:01 8880

原创 求满足条件的路径

一棵二叉树每个结点包含一个整数,请设计一个算法输出所有满足条件的路径,此路径上的所有结点之和等于给定值,注意此类路径不要求必须从根结点开始。

2016-07-31 22:32:32 701

原创 求二叉树中结点的最大距离

求二叉树中结点的最大距离(递归算法)

2016-07-31 15:39:26 707

原创 遍历二叉树

非递归方法遍历二叉树,包括:先序、中序、后序和层次

2016-07-30 16:34:24 386

原创 123. Best Time to Buy and Sell Stock III

leetcode 123

2016-07-20 20:51:00 219

原创 122. Best Time to Buy and Sell Stock II

leetcode 122

2016-07-20 17:13:03 252

原创 121. Best Time to Buy and Sell Stock

leetcode 121

2016-07-20 11:45:13 175

原创 100. Same Tree

leetcode 100

2016-07-19 22:59:31 183

原创 238. Product of Array Except Self

leetcode 238

2016-07-19 11:56:12 248

原创 237. Delete Node in a Linked List

leetcode 237

2016-07-19 11:12:51 214

原创 349. Intersection of Two Arrays

leetcode 349Given two arrays, write a function to compute their intersection.Example:Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return[2].Note:Each element in the result must be uni

2016-07-18 10:45:47 174

原创 283. Move Zeroes

leetcode283

2016-07-17 15:43:36 205

原创 260. Single Number III

leetcode 260Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements that appear only once.For exampl

2016-07-17 11:34:05 197

原创 226. Invert Binary Tree

leetcode 226

2016-07-14 23:02:36 207

原创 104. Maximum Depth of Binary Tree

leetcode 104Question: Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.有两种解题思路,

2016-07-14 21:32:13 312

原创 258. Add Digits

leetcode 258

2016-07-14 12:02:10 208

原创 136. Single Number

leetoce 136

2016-07-13 19:04:49 204

原创 371. Sum of Two Integers

leetcode 371

2016-07-13 15:54:11 215

原创 292. Nim Game

leetcode 292

2016-07-13 12:09:33 171

原创 338. Counting Bits

leetcode 338

2016-07-13 11:29:55 185

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除