Description
Let x and y be two strings over some finite alphabet A. We would like to transform
x into y allowing only operations given below:
Deletion: a letter in x is missing in y at a co...
分类:
其他好文 时间:
2015-08-16 21:32:50
阅读次数:
102
背景:之前对于数据库操作部分大多停留在会使用阶段,并未真正考虑过数据库SQL语句的执行效率问题。近期响应项目组其他成员需要,协助手动修改数据库。为了提高工作效率编写了C#测试工程进行相关操作。由于数据库记录量较大(超过10K条),在编写程序过程中发现不同的操作执行效率相差甚远,特做记录如下,待后续有时间再深入分析各种数据库的SQL语句的执行效率。
此次数据库修改要求涉及到删除、修改、添加等各种操作,...
分类:
数据库 时间:
2015-08-16 21:27:41
阅读次数:
218
使用的系统是fedora22,在mysq官网按照步骤使用的命令dnf安装的mysql,在使用的时候,直接创建了一个数据库,中文都是问号;
查看数据库的编码的命令:
show variables like 'character%';
下面是设置utf-8后,应该的编码格式。
解决办法:
修改my.cnf文件,这个文件在/etc/my.cnf,可以使用命令:
gedit /e...
分类:
数据库 时间:
2015-08-16 19:57:47
阅读次数:
234
DescriptionLetxandybe two strings over some finite alphabetA. We would like to transformxintoyallowing only operations given below:Deletion:a letter i...
分类:
其他好文 时间:
2015-08-16 19:48:49
阅读次数:
106
CakeTime Limit: 1 Second Memory Limit: 32768 KB You want to hold a party. Here's a polygon-shaped cake on the table. You'd like to cut the cake into ....
分类:
其他好文 时间:
2015-08-16 19:44:54
阅读次数:
272
1.过滤器设置 设置过滤器,得到你想要的哪种类型的包。Like WireShark。 过程:编译过滤器,然后设置过滤器。直接上参考文档的代码: if (d->addresses != NULL) /* 获取接口第一个地址的掩码 */ netmask=((st...
直接上代码:
#include "apue.h"
#include
int main(void)
{
char buf[MAXLINE]; /* form apue.h 4096 */
pid_t pid;
int status;
printf("%% "); /* print promt (printf requires %% to p...
分类:
系统相关 时间:
2015-08-16 10:48:08
阅读次数:
271
原题:DescriptionLetxandybe two strings over some finite alphabetA. We would like to transformxintoyallowing only operations given below:Deletion:a lette...
分类:
其他好文 时间:
2015-08-15 18:12:01
阅读次数:
93
Given a binary tree, flatten it to a linked list in-place.
For example,
Given
1
/ 2 5
/ \ 3 4 6
The flattened tree should look like:
1...
分类:
其他好文 时间:
2015-08-15 16:33:08
阅读次数:
140
DescriptionLetxandybe two strings over some finite alphabetA. We would like to transformxintoyallowing only operations given below:Deletion:a letter i...
分类:
其他好文 时间:
2015-08-15 16:13:32
阅读次数:
119