Chinaunix首页 | 论坛 | 博客
  • 博客访问: 269927
  • 博文数量: 170
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1709
  • 用 户 组: 普通用户
  • 注册时间: 2014-05-06 18:01
文章分类

全部博文(170)

文章存档

2016年(11)

2015年(130)

2014年(29)

发布时间:2015-09-26 15:20:24

//Validate Binary Search Tree My Submissions Question Solution&nbsp;<br />//Total Accepted: 63004 Total Submissions: 312589 Difficulty: Medium<br />//Given a binary tree, determine if it is a valid binary search tree (BST).<br />//<br />//Assume a BST is defined as follows:<br />//<br />//The .........【阅读全文】

阅读(769) | 评论(0) | 转发(0)

发布时间:2015-09-26 15:19:31

//Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).<br />//<br />//For example, this binary tree is symmetric:<br />//<br />// &nbsp; &nbsp;1<br />// &nbsp; / \<br />// &nbsp;2 &nbsp; 2<br />// / \ / \<br />//3 &nbsp;4 4 &nbsp;3<br />//But the fo.........【阅读全文】

阅读(650) | 评论(0) | 转发(0)

发布时间:2015-09-26 15:19:05

<br /><br />import java.util.ArrayList;<br />import java.util.LinkedList;<br />import java.util.List;<br />import java.util.Queue;<br /><br /><br />public class BinaryTreeZigzagLevelOrderTraversal {<br /><br /><br />public static void main(String[] args) {<br />// TODO Auto-generated met.........【阅读全文】

阅读(667) | 评论(0) | 转发(0)

发布时间:2015-09-26 15:18:39

//Unique Binary Search Trees II My Submissions Question Solution&nbsp;<br />//Total Accepted: 39624 Total Submissions: 139751 Difficulty: Medium<br />//Given n, generate all structurally unique BST's (binary search trees) that store values 1...n.<br />//<br />//For example,<br />//Given n = 3, .........【阅读全文】

阅读(722) | 评论(0) | 转发(0)

发布时间:2015-09-26 15:17:40

<br /><br />import java.util.ArrayList;<br />//Restore IP Addresses My Submissions Question Solution&nbsp;<br />//Total Accepted: 40984 Total Submissions: 191711 Difficulty: Medium<br />//Given a string containing only digits, restore it by returning all possible valid IP address combinations..........【阅读全文】

阅读(530) | 评论(0) | 转发(0)
给主人留下些什么吧!~~
留言热议
请登录后留言。

登录 注册