忠奸人

忠奸人

    • Home
    • Archives
    • About

Symmetric Tree

Symmetric Tree题目Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree

2015-06-23

Same Tree

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 str

2015-06-23

Recover Binary Search Tree

Recover Binary Search Tree题目Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its structu

2015-06-23

Validate Binary Search Tree

Validate Binary Search Tree题目Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows:

2015-06-21

Unique Binary Search Trees II

Unique Binary Tree II题目Given n, generate all structurally unique BST’s (binary search trees) that store values 1…n. For example, Given n = 3

2015-06-21

Unique Binary Search Trees

Unique Binary Search Trees题目Given n, how many structurally unique BST’s (binary search trees) that store values 1…n? For example, Given n =

2015-06-21

Binary Tree Inorder Traversal

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

2015-06-21

Remove Linked List Elements

Remove Linked List Elements题目Remove all elements from a linked list of integers that have value val. Example Given: 1 —> 2 —> 6 —>

2015-06-20

Intersection of Two Linked Lists

Intersection of Two Linked Lists题目Write a program to find the node at which the intersection of two singly linked lists begins. For example,

2015-06-20

Sort List

Sort List题目Sort a linked list in O(n log n) time using constant space complexity. 思路归并排序 解题c++ 版 1234567891011121314151617181920212223242526

2015-06-19
Prev123456Next

分类

  • 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