haotiangg
码龄13年
关注
提问 私信
  • 博客:5,081
    5,081
    总访问量
  • 11
    原创
  • 2,173,144
    排名
  • 1
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:上海市
  • 加入CSDN时间: 2012-07-03
博客简介:

haotiangg的专栏

查看详细资料
个人成就
  • 获得1次点赞
  • 内容获得1次评论
  • 获得1次收藏
创作历程
  • 11篇
    2017年
成就勋章
TA的专栏
  • LeetCode
    9篇
  • tree
    10篇
  • C++
    10篇
  • C++,
  • C++,STL
  • C++,STL,Effective STL 读书笔记
    1篇
创作活动更多

仓颉编程语言体验有奖征文

仓颉编程语言官网已上线,提供版本下载、在线运行、文档体验等功能。为鼓励更多开发者探索仓颉编程语言,现诚邀各位开发者通过官网在线体验/下载使用,参与仓颉体验有奖征文活动。

368人参与 去创作
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

Effective STL 读书笔记

effective c++的读书笔记
原创
发布博客 2017.07.28 ·
1707 阅读 ·
1 点赞 ·
1 评论 ·
6 收藏

LeetCode 100. Same Tree (C++)

Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical and the nodes have the same value.思路:前序遍历,判断
原创
发布博客 2017.06.26 ·
232 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

LeetCode 563. Binary Tree Tilt (C++)

Given a binary tree, return the tilt of the whole tree.The tilt of a tree node is defined as the absolute difference between the sum of all left subtree node values and the sum of all right subtree
原创
发布博客 2017.06.26 ·
408 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

LetCode 404. Sum of Left Leaves (C++)

Find the sum of all left leaves in a given binary tree.Example: 3 / \ 9 20 / \ 15 7There are two left leaves in the binary tree, with values 9 and 15 respectively. Return 24.
原创
发布博客 2017.06.26 ·
232 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

LeetCode 226. Invert Binary Tree (c++)

Invert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1Trivia:This problem was inspired by this original tweet by Max Howell
原创
发布博客 2017.06.22 ·
241 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

LeetCode 508. Most Frequent Subtree Sum (c++)

Given the root of a tree, you are asked to find the most frequent subtree sum. The subtree sum of a node is defined as the sum of all the node values formed by the subtree rooted at that node (includi
原创
发布博客 2017.06.22 ·
269 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

LeetCode 104. Maximum Depth of Binary Tree (C++)

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.方法一: 深度有限遍历/** * Definition for a b
原创
发布博客 2017.06.22 ·
283 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

LeetCode 538. Convert BST to Greater Tree (C++)

Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed to the original key plus sum of all keys greater than the original key in BST.Exampl
原创
发布博客 2017.06.21 ·
339 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

LeetCode 515. Find Largest Value in Each Tree Row (C++)

You need to find the largest value in each row of a binary tree.Example:Input: 1 / \ 3 2 / \ \ 5 3 9 Output: [1, 3, 9]方法一:用vector + 2个标
原创
发布博客 2017.06.21 ·
224 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

LeetCode 513. Find Bottom Left Tree Value (C++)

Given a binary tree, find the leftmost value in the last row of the tree.Example 1:Input: 2 / \ 1 3Output:1Example 2: Input: 1 / \ 2 3
原创
发布博客 2017.06.21 ·
310 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

LeetCode 617. Merge Two Binary Trees (C++)

C++ solution for LeetCode 617. Merge Two Binary Trees. No extra node is created.
原创
发布博客 2017.06.20 ·
835 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

C++ from the Ground Up

发布资源 2012.07.09 ·
pdf

C++Builder大全

发布资源 2012.07.09 ·
pdf