Given a roman numeral, convert it to an integer.
Input is guaranteed to be within the range from 1 to 3999.
class Solution {
public:
int romanToInt(string s) {
unordered_map mp = {{"M",...
分类:
其他好文 时间:
2015-05-11 21:55:41
阅读次数:
133
BUG: sleeping function called from invalid context at mm/slub.c:795in_atomic(): 1, irqs_disabled(): 128, pid: 0, name: swapper[] (unwind_backtrace+0x0...
分类:
其他好文 时间:
2015-05-11 21:43:41
阅读次数:
862
1.用一条SQL语句 查询出每门课都大于80分的学生姓名 name kecheng fenshu 张三 语文 81张三 数学 75李四 语文 76李四 数学 90王五 语文 81王五 数学 100王五 英语 90A: select distinct name from table where nam...
分类:
数据库 时间:
2015-05-11 21:34:13
阅读次数:
212
今天把应用部署到手机上时,出现了这样的问题 Exception from HRESULT: 0x80073CFD 具体错误是:Error Error : DEP0001 : Unexpected Error: A Prerequisitefor an install could not be ...
分类:
移动开发 时间:
2015-05-11 21:31:21
阅读次数:
178
1. 首先,安装Gradle。 简单的步骤:Prerequired: Java SDK installed1. Dowload Gradle from:http://gradle.org/downloads2. Set gradle home environment variable: GRADL....
分类:
编程语言 时间:
2015-05-11 20:04:08
阅读次数:
128
public class generator extends hibernateUtil { /* * increment机制是int 查找当前id的最大值加1,两次查询效率底点 * Hibernate: select max(id) from Person Hibernate: i...
分类:
Web程序 时间:
2015-05-11 19:42:11
阅读次数:
119
默认配置是抓不到明文密码了,神器mimikatz显示Password为null Authentication Id : 0 ; 121279 (00000000:0001d9bf) Session : Interactive from 1 User Name : mickey Domain: WIN...
题目描述:
Remove all elements from a linked list of integers that have value val.
Example
Given: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6
Return: 1 --> 2 --> 3 --> 4 --> 5
思路分析:在链表头节点...
分类:
其他好文 时间:
2015-05-11 18:06:30
阅读次数:
93
--##字符函数,大小写处理函数
SELECT LOWER('ABcDe')
FROM dual; -- abcde,全部转换为小写
SELECT UPPER('ABcDe')
FROM dual; -- ABCDE,全部转换为大写
SELECT INITCAP('aBcDe')
FROM dual; -- Abcde,首字母大写
--##字符函数,字符串处理函数
SEL...
分类:
数据库 时间:
2015-05-11 17:57:02
阅读次数:
151
shmmax内核参数定义是系统允许的单个共享内存段的最大值
现在模拟设置shmmax很小:
[root@localhost kernel]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.5 (Tikanga)
SQL> select * from v$version where rownum=1...
分类:
其他好文 时间:
2015-05-11 17:53:35
阅读次数:
149