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

全部博文(170)

文章存档

2016年(11)

2015年(130)

2014年(29)

发布时间:2015-04-02 15:23:09

mport java.util.ArrayList;import java.util.Arrays;import java.util.List;//Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target.////Note://Elements in a quadruplet (a,.........【阅读全文】

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

发布时间:2015-04-01 16:50:16

//Given a digit string, return all possible letter combinations that the number could represent.////A mapping of digit to letters (just like on the telephone buttons) is given below.////////Input:Digit string "23"//Output: ["ad", "ae", "af", "bd", "be", "bf", "cd", "ce", "cf"].import java..........【阅读全文】

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

发布时间:2015-04-01 15:58:33

//3Sum Closest Total Accepted: 33841 Total Submissions: 125526 My Submissions Question Solution //Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have exa.........【阅读全文】

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

发布时间:2015-04-01 10:33:26

/Given an integer, convert it to a roman numeral.////Input is guaranteed to be within the range from 1 to 3999.import java.util.HashMap;import java.util.Map;public class IntegertoRoman {public static void main(String[] args) {// TODO 自动生成的方法存根System.out.print(intToRoman(365));}.........【阅读全文】

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

发布时间:2015-03-31 16:52:28

The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H NA P L S I I GY I RAnd then read line by line: "PAHNAPLSIIGYIR"Write the code that.........【阅读全文】

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

登录 注册