11. what is reserved words in java?A. run B.
default C. implement D. import Java 中,给标识符取名的时候,不能使用关键字和保留字。在 Java 中常用的关键字有:
1、访问控制符: public、protecte...
分类:
其他好文 时间:
2014-07-22 22:59:16
阅读次数:
262
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.You shoul...
分类:
其他好文 时间:
2014-05-11 15:15:29
阅读次数:
287
Command Network Time Limit: 1000MSMemory Limit:
131072K Total Submissions: 11970Accepted: 3482 Description After a long lasting
war on words, a war on...
分类:
Web程序 时间:
2014-05-10 05:27:44
阅读次数:
475
Neal is very curious about combinatorial problems, and now here comes a problem about words. Knowing that Ray has a photographic memory and this may not trouble him, Neal gives it to Jiejie.
Since Ji...
分类:
其他好文 时间:
2014-05-10 03:48:22
阅读次数:
352
Given two words word1 and word2, find the
minimum number of steps required to convert word1 to word2. (each operation is
counted as 1 step.)You have t...
分类:
其他好文 时间:
2014-05-09 19:09:35
阅读次数:
318
我们常常用String的split()方法去分割字符串,有两个地方值得注意:1.
当分隔符是句号时("."),需要转义:由于String.split是基于正则表达式来分割字符串,而句号在正则表达式里表示任意字符。//Wrong://String[]
words = tmp.split(".");//...
分类:
编程语言 时间:
2014-05-08 21:47:41
阅读次数:
444
Problem
Link:http://oj.leetcode.com/problems/word-ladder/Two typical techniques are
inspected in this problem:Hash Table. One hash set is the words di...
分类:
其他好文 时间:
2014-05-05 22:44:44
阅读次数:
393
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 an...
分类:
其他好文 时间:
2014-05-03 21:35:49
阅读次数:
310
Where's Waldorf?
Given a m by n grid
of letters, ( ),
and a list of words, find the location in the grid at which the word can be found. A word matches a straight, uninterrupted line o...
分类:
其他好文 时间:
2014-05-02 10:59:15
阅读次数:
514
一、正则表达式的使用
cd /usr/share/dict
1、找出words文件下所有以a开头t结尾的单词
egrep "^a.*t$" words
2、匹配以abcde开头,以at结尾的单词
egrep "\" words
3、以大写字母开头,以t结尾
egrep "^[[:upper:]]t$" words
二、管道的使用
egrep "^a.*t$" words|wc -...
分类:
系统相关 时间:
2014-04-30 22:32:38
阅读次数:
372