摘要: Binary Tree Level Order Traversal 题目链接 题目要求: Given a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, lev... 阅读全文
posted @ 2015-07-08 21:53 峰子_仰望阳光 阅读(205) 评论(0) 推荐(0)
摘要: 题目链接 题目要求: Given a binary tree, determine if it is height-balanced. For this problem, a height-balanced binary tree is defined as a binary tree i... 阅读全文
posted @ 2015-07-08 21:00 峰子_仰望阳光 阅读(176) 评论(0) 推荐(0)
摘要: 题目链接 题目要求: Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number. An example is the root-to-leaf pat... 阅读全文
posted @ 2015-07-08 20:44 峰子_仰望阳光 阅读(187) 评论(0) 推荐(0)
摘要: 题目链接 题目要求: Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows:The left subtree of a nod... 阅读全文
posted @ 2015-07-08 19:59 峰子_仰望阳光 阅读(206) 评论(0) 推荐(0)
摘要: Path Sum 题目链接 题目要求: Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path ... 阅读全文
posted @ 2015-07-08 13:59 峰子_仰望阳光 阅读(228) 评论(0) 推荐(0)
摘要: Symmetric Tree 题目链接 题目要求: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary ... 阅读全文
posted @ 2015-07-08 11:22 峰子_仰望阳光 阅读(211) 评论(0) 推荐(0)
摘要: 本文摘录自TCP中的MSS解读。 MSS 是TCP选项中最经常出现,也是最早出现的选项。MSS选项占4byte。MSS是每一个TCP报文段中数据字段的最大长度,注意:只是数据部分的字段,不包括TCP的头部。TCP在三次握手中,每一方都会通告其期望收到的MSS(MSS只出现在SYN数据包中)... 阅读全文
posted @ 2015-07-08 10:06 峰子_仰望阳光 阅读(1622) 评论(0) 推荐(0)