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

全部博文(170)

文章存档

2016年(11)

2015年(130)

2014年(29)

发布时间:2015-03-22 16:44:57

public class compareVersion {public static void main(String[] args) {// TODO 自动生成的方法存根}public int compareVersion(String version1, String version2) {        int flag1[]=new int[version1.length()+1];        int flag2[]=new int[version2.length(.........【阅读全文】

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

发布时间:2015-03-22 16:20:14

class Change{int x;Change(int m){x=m;}}public class BalancedBinary {public static void main(String[] args) {// TODO 自动生成的方法存根TreeNode root=new TreeNode(3);//int i=3;Change change=new Change(0);System.out.print(isBalanced(root));} public static boolean isBalanced(TreeNode ro.........【阅读全文】

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

发布时间:2015-03-22 16:17:31

 Given a list, rotate the list to the right by k places, where k is non-negative.For example:Given 1->2->3->4->5->NULL and k = 2,return 4->5->1->2->3->NULL.public ListNode rotateRight(ListNode head, int k) {      &n.........【阅读全文】

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

发布时间:2015-03-22 14:53:03

《Python正则表达式指南》......【阅读全文】

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

发布时间:2015-03-22 14:36:00

Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lines, which together with x-axis forms a c.........【阅读全文】

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

登录 注册