忠奸人

忠奸人

    • Home
    • Archives
    • About

Count Complete Tree Nodes

Count Complete Tree Nodes题目Given a complete binary tree, count the number of nodes. Definition of a complete binary tree from Wikipedia:In a

2015-06-26

Binary Tree Right Side View

Binary Tree Right Side View题目Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can

2015-06-26

Binary Search Tree Iterator

Binary Search Tree Iterator题目Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of

2015-06-26

Binary Tree Postorder Traversal

Binary Tree Postorder Traversal题目Given a binary tree, return the postorder traversal of its nodes’ values. For example: Given binary tree {1

2015-06-26

Binary Tree Preorder Traversal

Binary Tree Preorder Traversal题目Given a binary tree, return the preorder traversal of its nodes’ values. For example: Given binary tree {1,#

2015-06-26

Sum Root to Leaf Numbers

Sum Root to Leaf Numbers题目Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example i

2015-06-26

Populating Next Right Pointers in Each Node II

Populating Next Right Pointers in Each Node II题目Follow up for problem “Populating Next Right Pointers in Each Node”. What if the given tree

2015-06-25

Populating Next Right Pointers in Each Node

Populating Next Right Pointers in Each Node题目Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLi

2015-06-25

Flatten Binary Tree to Linked List

Flatten Binary Tree to Linked List题目Given a binary tree, flatten it to a linked list in-place. For example,Given 1 / \ 2 5 / \

2015-06-25

Path Sum II

Path Sum II题目Given a binary tree and a sum, find all root-to-leaf paths where each path’s sum equals the given sum. For example: Given the b

2015-06-25
Prev1234…6Next

分类

  • leetcode57

标签

  • leetcode,tree28
  • leetcode,linkList20
  • leetcode,stack7
  • leetcode1
  • leetcode,dfs1

友情链接

  • 码农圈
  • Jark's Blog
  • 劝儒乡
RSS 订阅

新浪微博

生命不息,战斗不止!!!
This is my blog,believe it or not.

Powered by hexo and Theme by Jacman © 2015 yzbachelor