这回要求的是第k小的元素,参考了ljl大神的模板,orz 1 //insert 插入 2 //remove 删除 3 //_find 查找 4 //kth 返回root为根的树中第k小的元素 5 //treap插入、删除、查询时间复杂度均为O(logn) 6 #include 7 #...
分类:
其他好文 时间:
2014-10-28 19:55:27
阅读次数:
283
标准os库os.rename(oldname, newname)文件重命名;os.remove(filename)删除一个文件os.execute(cmd)os.execute可运行一条系统命令,类似于C语言的system函数。os.execute("mkdir /tmp/cq")os.exit(c...
分类:
其他好文 时间:
2014-10-28 17:24:33
阅读次数:
182
[HttpPost] public ActionResult Create(Users user) { ModelState.Remove(“Password”); //加上这句就行了 if (ModelStat...
分类:
Web程序 时间:
2014-10-28 15:25:07
阅读次数:
166
安装:
CentOS 7的yum源中貌似没有正常安装mysql时的mysql-sever文件,需要去官网上下载(通过安装yum源地址,再通过yum安装mysql)
注:安装前,需要卸载所有的mariadb软件(完成兼容mysql的另一个数据库,mysql原创者所写),通过命令yum remove mariadb*
获取yum地址:
安装yum地址:...
分类:
数据库 时间:
2014-10-28 13:54:16
阅读次数:
183
问题描述:
Given a sorted linked list, delete all duplicates such that each element appear only once.
For example,
Given 1->1->2, return 1->2.
Given 1->1->2->3->3, return 1->2->3.
思路:遍历链表,通过两个指针...
分类:
其他好文 时间:
2014-10-28 12:12:23
阅读次数:
143
Lua 中的Table元素删除主要有两种方法:1、将字段赋值为 nil2、使用Table库里的 table.remove(table, index)
下面着重讲解两种方法
1 table.remove
先来看一下这个库函数的函数原型:
table.remove(table, pos)
@table:...
分类:
其他好文 时间:
2014-10-28 10:22:04
阅读次数:
608
mysql总是报错,说sock文件不存在,网上若干方法,更改权限,更改配置文件,结果还是不能正常生成.sock文件。没办法,删除,重新安装。完全删除:删除 mysqlsudo apt-get autoremove --purge mysql-server-5.5sudo apt-get remove...
分类:
数据库 时间:
2014-10-27 21:06:18
阅读次数:
202
一切只为了让Wordpress作为一个最纯粹最干净的网页发布工具。How i can remove search box in header.Remove author, date, and category from posts.
分类:
其他好文 时间:
2014-10-27 17:00:51
阅读次数:
212
一, remvoeFragment 和 detachFragment 的区别: public?void?removeFragment(Fragment?fragment,?int?transition,?int?transitionStyle)?{
????????if?(DEBUG)?Log.v(TAG,?"remove:?"?+?...
分类:
其他好文 时间:
2014-10-27 14:31:44
阅读次数:
223
挺简单的,没什么好说的public class Solution { public int removeElement(int[] A, int elem) { int j=0; for(int i=0;i<A.length;i++){ if(...
分类:
其他好文 时间:
2014-10-27 14:13:22
阅读次数:
168