前几天求职面试,有一道SQL题:给出三个表:学生、课程、成绩,求选修了所有课程的学生。一道看似很简单的问题,把我难住了,我改了又改,涂涂画画,抓耳挠腮,因为试卷没有多少空白位置了,最后只好放弃。心情大受影响,尽管最后还是获得offer。但是心中有愧呀!于是在机器上试了试:先建好表use test;
go
create table student(sno varchar(50) not null,...
分类:
数据库 时间:
2015-03-12 00:59:11
阅读次数:
165
String[] delid = req.getParameterValues("delid"); if (delid != null) { for (int i = 0; i < delid.length; i++) { TextEntity te...
分类:
其他好文 时间:
2015-03-12 00:43:40
阅读次数:
107
Linked List Cycle ii Given a linked list, return the node where the cycle begins. If there is no cycle, return null. Follow up: Can you solve it ...
分类:
其他好文 时间:
2015-03-12 00:39:43
阅读次数:
157
关于Set这个接口,我们在前面的笔记中提到过,Set是代表无序、不可重复的集合,其实Set就是一个不包含重复元
素的collection。关于Set不包含重复元素的标准是:不包含满足e1.equals(e2)的元素对,元素e1和e2。并且最多包含
一个null元素。
接下来我们来看看这个接口给出的方法说明:
1、
int size();如果 set 中尚未...
分类:
编程语言 时间:
2015-03-11 23:33:58
阅读次数:
371
public static int getStatusBarHeight(Context context){ Class c = null; Object obj = null; Field field = null; int x = 0, s...
分类:
移动开发 时间:
2015-03-11 23:05:42
阅读次数:
140
要求定义一个数组类,动态分配数组大小,并实现反转与排序操作。
代码如下:
class Array {
private int a[] = null;
private int foot=0;
public Array(int len) {
if (len > 0)
this.a = new int[len];
else
this.a = new int[1];
}
...
分类:
编程语言 时间:
2015-03-11 21:41:28
阅读次数:
134
Main.php文件run();//运行Appcommon.phpCache->del($key);}if($value===NULL){return $App->Cache->get($key,$expire);}else{$App->Cache->set($key,$value,$expire)...
分类:
Web程序 时间:
2015-03-11 21:34:06
阅读次数:
243
Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL.题目关键点...
分类:
其他好文 时间:
2015-03-11 21:24:58
阅读次数:
114
Given a list, rotate the list to the right by k places, where k is non-negative. For example: Given 1->2->3->4->5->NULL and k = 2, return 4->5->1->2->...
分类:
其他好文 时间:
2015-03-11 21:15:13
阅读次数:
124
程序员开发时,知道要开发访问MySQL数据库的应用,于是将一个对 MySQL JDBC 驱动程序类的引用进行了编码,并通过使用适当的 JDBC URL 连接到数据库。 就像以下代码这样:Connection conn=null;try ...{Class.forName("com.mysql.jdb...
分类:
数据库 时间:
2015-03-11 19:24:06
阅读次数:
213