题目:Evaluate the value of an arithmetic expression in Reverse Polish Notation.Valid operators are +, -, *, /. Each operand may be an integer or anothe....
分类:
编程语言 时间:
2014-07-26 14:14:35
阅读次数:
225
Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321 1 class Solution { 2 public: 3 int reverse(int x){ 4 ...
分类:
其他好文 时间:
2014-07-26 13:54:24
阅读次数:
206
TCPIP网络协议层对应的RFC文档RFC - Request For Comments请求注解TCP/IP层网络协议RFC文档Physical LayerData Link LayerARP-Address Resolution ProtocolRFC826(ENCN)RARP-Reverse A...
分类:
其他好文 时间:
2014-07-26 00:53:56
阅读次数:
423
描述:计算逆波兰表达法的结果Sample: ["2", "1", "+", "3", "*"] -> ((2 + 1) * 3) -> 9 ["4", "13", "5", "/", "+"] -> (4 + (13 / 5)) -> 6使用stack实现: 1 def is_op(c): 2 .....
分类:
其他好文 时间:
2014-07-26 00:13:26
阅读次数:
265
自动生成DO,手写DAO:Myeclipse添加Hibernate支持:注意别勾abstract生成DO:进入MyEclipse的Database Explorer右键要操作的表(注意一定要有主键)点击Hibernate Reverse,其中Id选择native。手写DAO:Configuratio...
分类:
系统相关 时间:
2014-07-25 03:36:14
阅读次数:
305
题目:输入一个整数,输出该数二进制表示中1的个数。// 二进制中1的个数#include int wrong_count_1_bits(int n) // 错误解法: 当n为负数时, n>>=1右移, 最高位补1, 陷入死循环{ int count = 0; while(n) { ...
分类:
其他好文 时间:
2014-07-24 22:33:42
阅读次数:
221
题目: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 sin....
分类:
编程语言 时间:
2014-07-24 10:01:23
阅读次数:
223
Reverse Words in a StringGiven an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".click...
分类:
其他好文 时间:
2014-07-24 09:57:33
阅读次数:
179
题目:Reverse a linked list from position m to n. Do it in-place and in one-pass.For example:Given 1->2->3->4->5->NULL, m = 2 and n = 4,return 1->4->3->....
分类:
编程语言 时间:
2014-07-24 09:49:43
阅读次数:
204
python 字典排序http://www.cnblogs.com/kaituorensheng/archive/2012/08/07/2627386.html函数原型sorted(dic,value,reverse)dic为比较函数,value 为排序的对象(这里指键或键值),reverse:注明...
分类:
编程语言 时间:
2014-07-23 20:52:35
阅读次数:
183