之前的Connector/J版本是:mysql-connector-java-5.0.4-bin.jar 后来换成mysql-connector-java-5.1.45-bin.jar,问题解决 2018-02-16 01:07:10,086 WARN [org.hibernate.engine.j ...
分类:
数据库 时间:
2018-02-16 10:15:54
阅读次数:
1142
表:元素,元素个数,元素相对关系;元素操作:find,delete,insert,print,make null 简单数组实现: 元素都被加上了有自然顺序节点的链条,要预先估计一个较高的长度,有空间浪费。每次insert或delete时,因为自然节点固定要整体移动,占用时间。 链表实现: 不连续存储 ...
分类:
其他好文 时间:
2018-02-14 22:39:03
阅读次数:
218
Kth number Time Limit: 15000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 13726 Accepted Submission(s): 4160 Pr ...
分类:
其他好文 时间:
2018-02-11 17:57:41
阅读次数:
156
Given a set of words (without duplicates), find all word squares you can build from them. A sequence of words forms a valid word square if the kth row ...
分类:
其他好文 时间:
2018-02-11 10:45:53
阅读次数:
178
Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element. For exam ...
分类:
其他好文 时间:
2018-01-31 20:08:50
阅读次数:
200
2733: [HNOI2012]永无乡 Description 永 无乡包含 n 座岛,编号从 1 到 n,每座岛都有自己的独一无二的重要度,按照重要度可 以将这 n 座岛排名,名次用 1 到 n 来表示。某些岛之间由巨大的桥连接,通过桥可以从一个岛 到达另一个岛。如果从岛 a 出发经过若干座(含 ...
分类:
其他好文 时间:
2018-01-29 11:44:31
阅读次数:
192
Nearly every one have used the Multiplication Table. But could you find out the k-th smallest number quickly from the multiplication table? Given the ...
分类:
其他好文 时间:
2018-01-28 00:07:54
阅读次数:
183
Given a binary search tree, write a function kthSmallest to find the kth smallest element in it. Note: You may assume k is always valid, 1 ≤ k ≤ BST's ...
分类:
其他好文 时间:
2018-01-24 22:11:50
阅读次数:
118
[抄题]: 在一个排序矩阵中找从小到大的第 k 个整数。 排序矩阵的定义为:每一行递增,每一列也递增。 [思维问题]: 不知道应该怎么加,因为不是一维单调的。 [一句话思路]: 取出一个头,加周围的一堆。 [输入量]:空: 正常情况:特大:特小:程序里处理到的特殊情况:异常情况(不合法不合理的输入) ...
分类:
编程语言 时间:
2018-01-19 14:07:02
阅读次数:
249
package jianzhiOffer;
/**
* 输入一个链表,输出该链表中倒数第k个结点。
* @author user
* 思路:此题考查的是代码的鲁棒性,因此不能使用递归的方法,因为
* 当链表长度很长时,递归会导致栈溢出。
* 此题我们可以设置两个指针,
分类:
其他好文 时间:
2018-01-16 11:14:25
阅读次数:
178