Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another express...
分类:
其他好文 时间:
2014-10-01 13:35:41
阅读次数:
233
Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".补充说明:单词是指空格之间的字符序列。输入中可能有首部或尾部...
分类:
其他好文 时间:
2014-10-01 13:10:51
阅读次数:
161
类型检查(type checking)是指确认任一表达式的类型并保证各种语句符合类型的限制规则的过程。...
分类:
其他好文 时间:
2014-09-30 22:06:00
阅读次数:
171
array的方法总结会更改原来的的数组push、unshift方法,返回length。增加值得就返回length,其他返回该元素pop,shift返回该元素reverse返回该元素splice(start,deleteCount,addItem...),从原数组中删除和增加,返回删除的数组不会改变原...
分类:
其他好文 时间:
2014-09-30 20:02:00
阅读次数:
185
??
操作Collection以及Map的工具类:Collections
reverse(List):反转 List 中元素的顺序
shuffle(List):对 List 集合元素进行随机排序
sort(List):根据元素的自然顺序对指定 List 集合元素按升序排序
sort(List,Comparator):根据指定的 Comparator 产生的顺序对 List 集合元素进行排...
分类:
其他好文 时间:
2014-09-30 12:30:39
阅读次数:
202
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link...
分类:
其他好文 时间:
2014-09-30 04:40:32
阅读次数:
182
题目来源:POJ 1057 File Mapping题目大意:像我的电脑那样显示文件夹和文件信息,其中在同一级目录内,文件夹排在文件的前面并且文件夹的顺序不变,同一级目录中文件按字母序排列。文件以‘f’开头,文件夹以‘d’开头,‘*’表示一个case的结束,‘#’表示所有输入内容结束。解题思路:递归...
分类:
移动开发 时间:
2014-09-30 01:47:11
阅读次数:
255
题目描述:Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321解题方案:该题比较简单,直接贴代码: 1 class Solution { 2 public: 3 int ...
分类:
其他好文 时间:
2014-09-29 23:48:01
阅读次数:
164
实现将一个句子中的单词全部翻转。例:“I am a boy”转“bvoid reverse(char *start, char *end){if(start==NULL || end==NULL)return; while(start<end){ char temp=*start...
分类:
其他好文 时间:
2014-09-29 12:50:30
阅读次数:
112
由于MyBatis属于一种半自动的ORM框架,所以主要的工作将是书写Mapping映射文件,但是由于手写映射文件很容易出错,所以查资料发现有现成的工具可以自动生成底层模型类、Dao接口类甚至Mapping映射文件。一、建立表结构CREATE TABLE 'user' ( 'id' varchar(....
分类:
移动开发 时间:
2014-09-29 12:46:30
阅读次数:
306