Given an unsorted integer array, find the first missing positive integer.For example, Given [1,2,0] return 3, and [3,4,-1,1] return 2.Your algorithm s...
分类:
其他好文 时间:
2014-08-24 20:47:42
阅读次数:
214
Java内存模型和并发
1. 并发:
a) 并发一定是涉及到了多个执行流
b) 多个执行流之间一定有数据的共享(如果全是私有的数据就不会相互影响了(因为硬件上底层先保证了硬件资源的并发透明性,然后又没有共享的数据,相当于各个执行流在单独的封闭的上下文中独自的运行了))
c)
i. ...
分类:
移动开发 时间:
2014-08-23 19:06:11
阅读次数:
332
最近开发和学习过程中,遇到很多零碎的知识点,在此简单地记录下:1.遇如下bug:org.unsavedtransientinstance-savethetransientinstancebeforeflushing:org.blog.blog.domain.HighStudent解释:意思是说hib...
分类:
其他好文 时间:
2014-08-23 08:49:10
阅读次数:
281
利用puppet管理solrcloud主脚本1./etc/puppet/manifests/zookeeper.pp/*vimset:expandtab:shiftwidth=4:tabstop=4:smarttab:*/#=globalvar#=sae#=cron#=user#=account#=stdlib#=zookeeper#=solr#=jettynode/sae$/{includeglobalvarincludeglobalvar::userincludeaccount::lists..
分类:
其他好文 时间:
2014-08-22 18:08:09
阅读次数:
327
//多SQL中导出的触发器语句:DROP TRIGGER IF EXISTS `t_trig`;DELIMITER //CREATE TRIGGER `t_trig` BEFORE INSERT ON `t_goods` FOR EACH ROW beginset NEW.add_date = cu...
分类:
数据库 时间:
2014-08-22 12:38:56
阅读次数:
388
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.You should preserve the o...
分类:
其他好文 时间:
2014-08-21 20:58:34
阅读次数:
244
Partition List
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.
You should preserve the original relative order of...
分类:
其他好文 时间:
2014-08-21 19:23:34
阅读次数:
295
content一般和:before,:after一起使用,用来生成内容(img和input没有该属性),content的内容一般可以为以下四种:none: 不生成任何值。attr: 插入标签属性值url: 使用指定的绝对或相对地址插入一个外部资源(图像,声频,视频或浏览器支持的其他任何资源)stri...
分类:
Web程序 时间:
2014-08-21 17:04:14
阅读次数:
307
windowns系统安装,重新引导系统启动,解决bootmgr-is-missing的问题...
Handling ListViews with Multiple Row TypesWhen you start writing Android Apps it isn’t long before you need to useListViews. ListViews are easy to get...
分类:
其他好文 时间:
2014-08-20 12:22:52
阅读次数:
322