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

全部博文(170)

文章存档

2016年(11)

2015年(130)

2014年(29)

发布时间:2015-06-30 20:47:01

//First Missing Positive Total Accepted: 39228 Total Submissions: 171561 My Submissions Question Solution&nbsp;<br />//Given an unsorted integer array, find the first missing positive integer.<br />//<br />//For example,<br />//Given [1,2,0] return 3,<br />//and [3,4,-1,1] return 2.<br />//<br.........【阅读全文】

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

发布时间:2015-06-30 13:17:40

注意: 先看第一个元素是否是target ,然后求后面的元素是target,最后求去掉第一个元素得到后面的结果是target-第一个的值<br />//Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.<br />//<br />//Each number in C .........【阅读全文】

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

发布时间:2015-06-29 19:24:24

注意 char+int 得到的还是int值 直接加到结果字符串上面<br />可以使用:sBuilder.append(Integer.toString(count)+lastChar);<br />sBuilder.append(""+count+lastChar);<br />避免问题<br />//The count-and-say sequence is the sequence of integers beginning as follows:<br />//1, 11, 21, 1211, 111221, ...<b.........【阅读全文】

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

发布时间:2015-06-29 17:40:49

<p style="box-sizing:border-box;margin-top:0px;margin-bottom:10px;color:#333333;font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:14px;line-height:30px;white-space:normal;background-color:#FFFFFF;">//Write a program to solve a Sudoku puzzle by filling the empty cells.<br />//<b.........【阅读全文】

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

发布时间:2015-06-27 19:10:44

//Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.<br />//<br />//The Sudoku board could be partially filled, where empty cells are filled with the character '.'.<br />//<br />//<br />//A partially filled sudoku which is valid.<br />//<br />//Note:<br />//A valid Sud.........【阅读全文】

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

登录 注册