Java JVM使用哪种编码格式
A ASCII characters
B Unicode characters
C Cp1252
D UTF-8
E GBK
F GBK2312
答案:B
在JVM内部,统一使用Unicode...
分类:
编程语言 时间:
2014-08-10 13:00:40
阅读次数:
218
这道题真心是难度比较大,不是算法难度,是实现难度,各种case都得考虑到。我没有A过,一开始就把.1这种case当做是错误的。导致程序逻辑乱套了。下面是别人的代码: 1 class Solution { 2 public: 3 bool isNumber(const char *s) { 4...
分类:
其他好文 时间:
2014-08-09 21:21:59
阅读次数:
347
Valid SudokuDetermine if a Sudoku is valid, according to:Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are ...
分类:
其他好文 时间:
2014-08-09 21:20:39
阅读次数:
226
1.1 Implement an algorithm to determine if a string has all unique characters. Whatif you cannot use additional data structures? 1 #include 2 #includ....
分类:
其他好文 时间:
2014-08-09 18:17:58
阅读次数:
199
Input: Executing std::cin >> v discards any whitespace characters in the standard input stream, then reads from the standard input into variable v. It...
分类:
其他好文 时间:
2014-08-09 13:18:47
阅读次数:
198
Evaluate the value of an arithmetic expression in Reverse Polish Notation.Valid operators are +, -, *, /. Each operand may be an integer or another ex...
分类:
其他好文 时间:
2014-08-08 23:49:56
阅读次数:
314
Problem Description
bobo found an ancient string. The string contains only three charaters -- "(", ")" and "?".
bobo would like to replace each "?" with "(" or ")" so that the string is valid (d...
分类:
其他好文 时间:
2014-08-08 18:15:06
阅读次数:
273
很经典的问题,使用栈来解决,我这里自己实现了一个栈,当然也可以直接用java自带的Stack类。
自己实现的栈代码:
import java.util.LinkedList;
class StackOne {
LinkedList data;
int top;
int maxSize;
StackOne(int size) {
// TODO Auto-generated co...
分类:
其他好文 时间:
2014-08-07 19:01:20
阅读次数:
236
题目: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 ....
分类:
编程语言 时间:
2014-08-07 07:14:10
阅读次数:
257
设置方法:我的电脑->属性->高级->环境变量->系统变量中添加以下环境变量:JAVA_HOME值为:安装JDK的目录, 我的为C:\Program Files\Java\jdk1.8.0_05(安装时候有路径选择,复制下来即可)CLASSPATH值为:.;%JAVA_HOME%\lib\tools...
分类:
移动开发 时间:
2014-08-06 21:55:42
阅读次数:
371