这次的作业主要用到了单词查找树和深度优先搜索。 1.在深度优先搜索中,在当前层的递归调用前,将marked数组标记为true。当递归调用返回到当前层时,应将marked数组标记为false。这样既可以使访问完当前节点之后不会访问到达当前节点路径上的节点,又可以从其它路径上访问到该节点。 2.当词典中 ...
分类:
编程语言 时间:
2018-03-15 00:35:12
阅读次数:
258
删除表内数据,用 delete。格式为: 实例:删除学生表内姓名为张三的记录。 清除表内数据,保存表结构,用 truncate。格式为: 实例:清除学生表内的所有数据。 删除表用 drop,就是啥都没了。格式为: 实例:删除学生表。 1、当你不再需要该表时, 用 drop; 2、当你仍要保留该表,但 ...
分类:
数据库 时间:
2018-03-07 18:57:31
阅读次数:
139
一般这种表崩溃的问题出现在mysql异常停止,或者使用kill -9命令强行杀掉进程导致,进入MySQL命令行后,执行下面的命令即可修复‘./mysql/proc’表 ...
分类:
数据库 时间:
2018-03-05 13:43:16
阅读次数:
188
---title: 斯坦福-随机图模型-week1.1tags: notenotebook: 6- 英文课程-9-Probabilistic Graphical Models 1: Representation--- # 斯坦福-随机图模型-week1.1 ## 练习 ### 1。第 1 个问题 F... ...
分类:
其他好文 时间:
2018-03-02 20:42:05
阅读次数:
142
[ERROR] /usr/sbin/mysqld: Table ‘./cacti/poller_item‘ is marked as crashed and should be repaired
分类:
数据库 时间:
2018-03-02 16:41:46
阅读次数:
295
There is a rectangular area containing n × m cells. Two cells are marked with “2”, and another two with “3”. Some cells are occupied by obstacles. You ...
分类:
其他好文 时间:
2018-03-01 13:33:05
阅读次数:
194
Unique Paths I A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or ...
分类:
其他好文 时间:
2018-02-25 14:31:59
阅读次数:
182
编码 默认情况下,Python 3 源码文件以 UTF-8 编码,所有字符串都是 unicode 字符串。 当然你也可以为源码文件指定不同的编码: 标识符 第一个字符必须是字母表中字母或下划线'_'。 标识符的其他的部分有字母、数字和下划线组成。 标识符对大小写敏感。 在Python 3中,非-AS ...
分类:
编程语言 时间:
2018-02-24 23:06:31
阅读次数:
231
The swimming area of Berhattan's city beach is marked out with n buoys. The buoys form a straight line. When the buoys were being put into the water, ...
分类:
其他好文 时间:
2018-02-22 19:43:47
阅读次数:
159
Problem Link: http://codeforces.com/problemset/problem/888/F Problem Statement: There are n points marked on the plane. The points are situated in suc ...
分类:
其他好文 时间:
2018-02-20 10:28:38
阅读次数:
208