Computing minimum volume bounding box is a hard problem in computer science. Exact algorithm costs O(n3) time complexity.However, for lots of applicat...
分类:
其他好文 时间:
2015-01-08 10:58:58
阅读次数:
239
题目:
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
思路:使用快慢两个指针。开始时,两个指针同时指向head,之后slow每次前行一步,fast每次前行两步。如果链表有环,这两个指针一定会相遇,如果没有...
分类:
编程语言 时间:
2015-01-07 13:16:22
阅读次数:
172
DBCC CHECKDB 用法详解, 手工修复数据库1. 快速修复DBCC CHECKDB ('数据库名',REPAIR_FAST)2.重建索引并修复DBCC CHECKDB ('数据库名',REPAIR_REBUILD)3.如果必要允许丢失数据库修复DBCC CHECKDB ('数据库名',REP...
分类:
数据库 时间:
2015-01-07 13:04:38
阅读次数:
220
作者:zhanhailiang 日期:2015-01-07
直接使用命令行git pull操作正常,如下:
D:\vipshop\mstats\mstats-monitor>git pull
Updating 5050c42..e8b3bd9
Fast-forward
public/css/app.css | 30 ++++++++++++++++++
pu...
分类:
其他好文 时间:
2015-01-07 10:59:56
阅读次数:
339
有了这个配置,妈妈再也不用担心我的失误操作了
在 ~ 下 .bashrc 或者.bash_profile 加入
mkdir -p ~/.trash
alias rm=trash
alias r=trash
alias rl='ls ~/.trash'
alias ur=undo
undo()
{
mv -i ~/.trash/$@ ./
}
trash()
{
mv $@ ~/.tra...
分类:
系统相关 时间:
2015-01-07 00:41:00
阅读次数:
239
启动AVD模拟器异常:Cannot set up guest memory ‘pc.ram’ 错误信息: HAX is working and emulator runs in fast virt mode Cannot set up guest memory 'pc.ram': Invalid argument Error accepting connect...
分类:
移动开发 时间:
2015-01-06 23:14:22
阅读次数:
307
Algorithmic Trading has been a hot topic for equity/derivative trading over a decade. Many ibanks and hedge funds have built their own algorithmic tra...
分类:
其他好文 时间:
2015-01-05 16:26:56
阅读次数:
227
Elasticsearchis a great search engine, flexible, fast and fun. So how can I get started with it? This post will go through how to get contents from aS...
分类:
数据库 时间:
2015-01-05 00:23:42
阅读次数:
509
jQuery任何动画都能指定3种速度参数"slow","normal","fast"(时间分别是0.6s 0.4s 0.2s),使用该3参数时必须加引号。另外还可以使用数字作为时间参数,例如show(1000)。1、show()和hide()方法 show()方法 最后将元素的display属性设....
分类:
Web程序 时间:
2015-01-04 13:21:03
阅读次数:
136
几个套路第一 fast slow 找中点,找位数。第二 reverse{ ListNode last = prev.next; ListNode curr = last.next; while(curr!=null) { last.next = curr.next; ...
分类:
其他好文 时间:
2015-01-01 07:53:20
阅读次数:
138