1 package com.java7; 2 /* 3 * Try This 5-2 4 * A queue class for characters. 5 */ 6 class Queue { 7 char q[]; // this array holds the queue 8 ...
分类:
其他好文 时间:
2014-12-16 20:56:43
阅读次数:
331
Write a complete program that will correctly decode a set of characters into a valid message. Your program should read a given file of a simple coded ...
分类:
编程语言 时间:
2014-12-15 16:46:15
阅读次数:
225
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2014-12-15 00:00:53
阅读次数:
329
DescriptionFor each prefix of a given string S with N characters (each character has an ASCII code between 97 and 126, inclusive), we want to know whe...
分类:
其他好文 时间:
2014-12-14 21:15:07
阅读次数:
164
使用的python2.7,运行的时候出现了'ascii' codec can't encode characters in position 0-8: ordinal not in range(128)错误,通过搜索一些文章了解到是因为python系统使用的默认编码为ascii编码,但是代码运行中的...
分类:
Web程序 时间:
2014-12-13 23:17:49
阅读次数:
197
head [filename]head -n 11 [filename] -> First 11 lines head -c 20 [filename] -> First 20 characters head默认为显示前10行。tail [filename]tail -n 11 [filena...
分类:
系统相关 时间:
2014-12-13 13:21:23
阅读次数:
250
The API: int read4(char *buf) reads 4 characters at a time from a file.The return value is the actual number of characters read. For example, it retur...
分类:
其他好文 时间:
2014-12-13 06:13:49
阅读次数:
133
The API: int read4(char *buf) reads 4 characters at a time from a file.The return value is the actual number of characters read. For example, it retur...
分类:
其他好文 时间:
2014-12-13 06:07:23
阅读次数:
209
Given a string, find the length of the longest substring T that contains at most 2 distinct characters.For example, Given s = “eceba”,T is "ece" which...
分类:
其他好文 时间:
2014-12-13 06:07:09
阅读次数:
137
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without
repeating letters for "abcabcbb" is "abc", which the length is 3. Fo...
分类:
其他好文 时间:
2014-12-12 11:49:07
阅读次数:
132