Zhejiang University has 40000 students and provides 2500 courses. Now given the student name lists of all the courses, you are supposed to output the registered course list for each student who comes ...
分类:
其他好文 时间:
2015-05-10 06:21:45
阅读次数:
178
Similar with
the linux version , this article would demonstrate how to write a simple windows .
I divide the 2 operations : write and read into 2 threads. Of course, one could call ReadFile a...
CREATETABLE[tb_name];1、创建表的主键约束:主键是唯一标识某字段的作用,当该字段为主键的时候,其值必须是唯一的,且不能为空。mysql>CREATETABLEstudent(idINTPRIMARYKEY,stu_idINT,course_idINT);id为主键,所有字段都为整数mysql>CREATETABLEstudent(idINTPRIMARYK..
分类:
数据库 时间:
2015-05-08 15:11:45
阅读次数:
473
怎样使用Linux获取更多的信息
现在我们将讨论一些你日常使用Linux工作中可能需要的其它命令。它们是你的工作变得简单并且会给你关于你的系统的额外信息。
‘man’——Linux中的手册
第一个命令是‘man’命令。这个命令将会显示一个命令或者程序的手册。手册是一个文件,这个文件给出了怎样使用该命令并列出该命令的不同选项。你可以这样输入:
man [...
分类:
其他好文 时间:
2015-05-08 09:30:34
阅读次数:
134
Course Schedule2015.5.8 01:26There are a total ofncourses you have to take, labeled from0ton - 1.Some courses may have prerequisites, for example to t...
分类:
其他好文 时间:
2015-05-08 06:54:18
阅读次数:
114
There are a total ofncourses you have to take, labeled from0ton - 1.Some courses may have prerequisites, for example to take course 0 you have to firs...
分类:
其他好文 时间:
2015-05-07 21:47:35
阅读次数:
145
题目
思路
明显的拓扑排序。
这里用的C写,用malloc动态分配内存给二维数组挺烦的,当做锻炼吧。代码bool canFinish(int numCourses, int** prerequisites, int prerequisitesRowSize, int prerequisitesColSize) {
int * Indegrees;
bool ** IsConne...
分类:
其他好文 时间:
2015-05-07 16:51:44
阅读次数:
132
Course Schedule问题:There are a total ofncourses you have to take, labeled from0ton - 1.Some courses may have prerequisites, for example to take course ...
分类:
其他好文 时间:
2015-05-07 16:04:49
阅读次数:
104
There are a total of n courses you have to take, labeled from 0 to n
- 1.
Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is expressed as ...
分类:
其他好文 时间:
2015-05-07 14:31:38
阅读次数:
94
There are a total ofncourses you have to take, labeled from0ton - 1.Some courses may have prerequisites, for example to take course 0 you have to firs...
分类:
其他好文 时间:
2015-05-07 14:26:31
阅读次数:
167