Given an array of integers, every element appears twice except for one. Find that single one. 本题利用XOR的特性, X^0 = X, X^X = 0, 并且XOR满足交换律。 single number ...
分类:
其他好文 时间:
2016-11-21 08:48:01
阅读次数:
164
-- Deadline: 2016-11-14 20:00pm -- 作业内容:https://edu.cnblogs.com/campus/bjgygd/Sixteen-One/homework/178 -- 第八次作业总结: 1. 这次作业发布有些迟,所以迟交的同学,我目前没有扣分数,部分同学还 ...
分类:
其他好文 时间:
2016-11-20 19:30:53
阅读次数:
366
生成 测试数据的shell脚本 Vim data_create.sh rm -rf ./data.txttouch data.txtfor((i=0;i<2000;i++))dostr=',name';name=${i}${str}${i} #echo $nameecho $name>> data. ...
分类:
系统相关 时间:
2016-11-20 18:34:54
阅读次数:
235
本文原文地址 http://www.cnblogs.com/qianLL/p/6082287.html 有时候 后台返回的是一串html'字符串 我们需要把里面的图片地址提取出来 这个关键就是一个正确的正则表达式 即 <(img|IMG)(.*?)(/>|></img>|>) 具体代码如下 返回的是 ...
分类:
移动开发 时间:
2016-11-20 13:45:34
阅读次数:
239
JSP file not rendering in Spring Boot web application You will need not one but two dependencies (jasper and jstl) in your pom.xml for this to work. Y ...
分类:
编程语言 时间:
2016-11-20 13:41:37
阅读次数:
298
Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter at ...
分类:
其他好文 时间:
2016-11-20 13:06:11
阅读次数:
162
百万条数据快速查询优化技巧参考 我为Net狂 所以的优化并不是绝对,具体得根据业务实际情况 百万条数据快速查询优化技巧1.应尽量避免在where子句中使用!=或<>操作符2.应尽量避免在where子句中使用or来连接条件如:select Id from t where num=10 or num=2 ...
分类:
其他好文 时间:
2016-11-20 10:50:05
阅读次数:
183
一、来自wikipidia的解释: Shallow copy One method of copying an object is the shallow copy. In that case a new object B is created, and the fields values of A ...
分类:
其他好文 时间:
2016-11-20 07:20:07
阅读次数:
280
Given a non-negative number represented as a singly linked list of digits, plus one to the number. The digits are stored such that the most significan ...
分类:
其他好文 时间:
2016-11-20 07:00:18
阅读次数:
121