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

全部博文(170)

文章存档

2016年(11)

2015年(130)

2014年(29)

发布时间:2015-10-04 12:46:10

//Given inorder and postorder traversal of a tree, construct the binary tree.<br />//<br />//Note:<br />//You may assume that duplicates do not exist in the tree.<br />public class ConstructBinaryTreefromInorderandPostorderTraversal {<br /><br /><br />public static void main(String[] args) {.........【阅读全文】

阅读(1019) | 评论(1) | 转发(0)

发布时间:2015-10-04 12:33:07

//Given preorder and inorder traversal of a tree, construct the binary tree.<br />public class ConstructBinaryTreefromPreorderandInorderTraversal {<br /><br /><br />public static void main(String[] args) {<br />// TODO Auto-generated method stub<br /><br /><br />}<br />public TreeNode build.........【阅读全文】

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

发布时间:2015-10-04 12:31:02

<br /><br />import java.util.ArrayList;<br />import java.util.List;<br />//Triangle My Submissions Question Solution&nbsp;<br />//Total Accepted: 51440 Total Submissions: 184601 Difficulty: Medium<br />//Given a triangle, find the minimum path sum from top to bottom. Each step you may move to .........【阅读全文】

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

发布时间:2015-10-04 12:28:51

<br /><br />public class MoveZeroes {<br /><br /><br />public static void main(String[] args) {<br />// TODO Auto-generated method stub<br /><br /><br />}<br />public void moveZeroes(int[] nums) {<br />int end=0;<br />int count=nums.length;<br />for(int i=0;i&lt;count;i++){<br />if(num.........【阅读全文】

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

发布时间:2015-10-04 12:28:45

<br /><br />public class MoveZeroes {<br /><br /><br />public static void main(String[] args) {<br />// TODO Auto-generated method stub<br /><br /><br />}<br />public void moveZeroes(int[] nums) {<br />int end=0;<br />int count=nums.length;<br />for(int i=0;i&lt;count;i++){<br />if(num.........【阅读全文】

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

登录 注册