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

全部博文(170)

文章存档

2016年(11)

2015年(130)

2014年(29)

发布时间:2015-08-28 14:55:46

//<br />//Climbing Stairs Total Accepted: 66034 Total Submissions: 191740 My Submissions Question Solution&nbsp;<br />//You are climbing a stair case. It takes n steps to reach to the top.<br />//<br />//Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the .........【阅读全文】

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

发布时间:2015-08-12 16:27:57

//Implement int sqrt(int x).<br />//<br />//Compute and return the square root of x.<br />public class Sqrt {<br /><br /><br />public static void main(String[] args) {<br />// TODO Auto-generated method stub<br /><br /><br />}<br />public int mySqrt(int x) {<br />// &nbsp; &nbsp; &nbsp;.........【阅读全文】

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

发布时间:2015-08-12 15:22:08

//Text Justification Total Accepted: 22323 Total Submissions: 152223 My Submissions Question Solution&nbsp;<br />//Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified.<br />//<br />//You should pack your word.........【阅读全文】

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

发布时间:2015-08-08 17:47:38

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Scanner;
public class NumberFormat {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
ArrayList<String> list = new ArrayList<String>();
int t = In.........【阅读全文】

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

发布时间:2015-08-06 22:01:30

<br /><br />public class UniquePaths {<br /><br /><br />public static void main(String[] args) {<br />// TODO Auto-generated method stub<br /><br /><br />}<br />public int uniquePaths(int m, int n) {<br />// &nbsp; &nbsp; &nbsp; &nbsp;int[][] pathcount=new int[m][n];<br />// &nbsp; &nbsp.........【阅读全文】

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

登录 注册