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

全部博文(170)

文章存档

2016年(11)

2015年(130)

2014年(29)

发布时间:2015-04-16 15:56:43

//Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.////If such arrangement is not possible, it must rearrange it as the lowest possible order (ie, sorted in ascending order).////The replacement must be in-place, do not allocate e.........【阅读全文】

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

发布时间:2015-04-16 11:15:58

//You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenation of each word in L exactly once and without any intervening characters.import java.util.ArrayList;import java.util.HashMap;import java.util.L.........【阅读全文】

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

发布时间:2015-04-15 10:39:37

import java.io.File;import java.io.FileNotFoundException;import java.util.ArrayList;import java.util.Scanner;public class RemoveIndex {public static void main(String[] args) {// TODO 自动生成的方法存根Scanner s = null;try {s = new Scanner(new File("F:\\输入.txt"));} catch (FileNotFound.........【阅读全文】

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

发布时间:2015-04-13 14:26:42

//Divide Two Integers Total Accepted: 34192 Total Submissions: 223949 My Submissions Question Solution //Divide two integers without using multiplication, division and mod operator.////If it is overflow, return MAX_INT.下面时申请动态数组来存 divisor*2^i的值,以便来与dividend进行比较来确定.........【阅读全文】

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

发布时间:2015-04-09 20:27:25

//Implement strStr() Total Accepted: 46286 Total Submissions: 209890 My Submissions Question Solution //Implement strStr().////Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.public class ImplementstrStr {public static void main(St.........【阅读全文】

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

登录 注册