环境 :MySQL 5.6.21 64位CentOS 6.5 64位VMware 10Navicat forMySQL111.卸载自带mysql[root@localhost~]# yum remove mysql mysql-server mysql-libs检查是否有残留[root@localh...
分类:
数据库 时间:
2014-10-13 18:10:49
阅读次数:
222
1,/etc/hosts,主机名ip配置文件。# Do not remove the following line, or various programs# that require network functionality will fail.127.0.0.1 localhost.local...
分类:
其他好文 时间:
2014-10-13 13:08:39
阅读次数:
178
Follow up for "Remove Duplicates":
What if duplicates are allowed at most twice?
For example,
Given sorted array A = [1,1,1,2,2,3],
Your function should return length = 5, and A is now [1,1,2,...
分类:
其他好文 时间:
2014-10-12 19:42:38
阅读次数:
141
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.
For example,
Given 1->2->3->3->4->4->5, return 1->2->5.
Given 1->1-...
分类:
其他好文 时间:
2014-10-12 15:51:58
阅读次数:
190
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.
/**
* Definition for s...
分类:
其他好文 时间:
2014-10-12 13:59:18
阅读次数:
182
今天终于进展到了第三章,好好读了读链表其实对于linkedlist来说,它的remove也会是O(N),因为对于删除这个动作确实是常数时间的,但是对于定位到被删除元素的位置就需要有线性时间的开销了今天参照书上的把ArrayList类编了编,定名为MyArrayListM 1 package mya....
分类:
其他好文 时间:
2014-10-11 19:52:58
阅读次数:
208
Given an array and a value, remove all instances of that value in place and return the new length.
The order of elements can be changed. It doesn't matter what you leave beyond the new length.
S...
分类:
其他好文 时间:
2014-10-11 18:55:56
阅读次数:
185
Remove Duplicates from Sorted List I
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...
分类:
其他好文 时间:
2014-10-11 16:50:15
阅读次数:
206
Remove Duplicates from Sorted Array I
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
Do not allocate extra space for an...
分类:
其他好文 时间:
2014-10-11 16:19:56
阅读次数:
140
BasicDataSource配置commons DBCP 配置参数简要说明 前段时间因为项目原因,要在修改数据库连接池到DBCP上,折腾了半天,有一点收获,不敢藏私,特在这里与朋友们共享。 在配置时,主要难以理解的主要有:removeAbandoned 、logAbandoned、remove.....
分类:
其他好文 时间:
2014-10-11 12:09:35
阅读次数:
169