1 double 2 pres(const int n) { 3 double numerator = 2; //分子. 4 double denominator = 1; //分母. 5 double sum = 0; 6 double tmp; 7 ...
分类:
其他好文 时间:
2014-12-03 12:16:14
阅读次数:
150
问题描述:
基本思路:
代码:
public ListNode reverse(ListNode head,int n) //Java
{
ListNode tmp = head;
int step = 1;
tmp = tmp.next;
ListNode pre = head;...
分类:
其他好文 时间:
2014-12-03 00:29:30
阅读次数:
110
excel生成的自动恢复文件的扩展名应该是.xar,
如果你确定这个tmp文件是excel生成的文件,
可以将这个文件的扩展名改为.xls,
文件图标即会变成excel文件的图标,
双击即可打开。试试吧,祝你好运!
分类:
其他好文 时间:
2014-12-02 17:28:50
阅读次数:
135
我们在弄winfrom的时候可能经常会碰到,当光标移动到某个输入框的时候输入法自动变成全角的了。因此这个就出现了。[hide]//半角转换为全角函数function ToDBC(txtstring) { var tmp = ""; for (var i = 0; i 65248 && str.ch....
分类:
其他好文 时间:
2014-12-02 16:30:13
阅读次数:
112
导出数据库 #mysqldump -u root -h localhost -p -r /tmp/mysql-data.txt -B authpuppy 导入数据库 #mysql -u root -p mysql>source /tmp/mysql-data.txt mysql>create use...
分类:
数据库 时间:
2014-12-02 15:10:54
阅读次数:
189
和Pascal's Triangle类似,这里是不需要记录所有的,而是给定一个行号,返回那一行的数据就可以了。例如:For example, givenk= 3,Return[1,3,3,1].所以给0的时候返回[1].题目要求O(k)空间,也就是除了要返回的空间外,其他是常数空间。那就用一个tmp...
分类:
其他好文 时间:
2014-12-02 13:26:48
阅读次数:
185
打开sql server,在菜单栏“查询”中,选择“显示估计的执行计划”,此时在消息栏中出现未能找到路径“C:\Users\Administrator\AppData\Local\Temp\2\3l2ljwr-.tmp”的一部分。在C:\Users\Administrator\AppData\Loc...
分类:
数据库 时间:
2014-12-02 10:25:43
阅读次数:
452
因系统版本和语言环境不同,安装包的名字会有所差别安装方式可以选择直接联网安装,也可以加载dvd镜像源安装,这里针对配置redhat/centos本地dvd的yum源做个记录:1.复制 redhat ISO 系统dvd镜像到当前系统任一目录下,这里记作:/tmp/redhat.iso2.挂载镜像到/m...
分类:
其他好文 时间:
2014-12-01 19:07:20
阅读次数:
217
命令名称:touch
所在路径:/bin.touch
执行权限:所有用户
oot@localhost tmp]# touch list.txt
[root@localhost tmp]# touch /root/list.txt
[root@localhost tmp]# touch program files
[root@localhost tmp]# ll
总计 52
drwxr-xr-...
分类:
系统相关 时间:
2014-12-01 16:06:48
阅读次数:
237
import numpy as npimport scipy.io as iocreat = locals()tmp = io.loadmat("all.mat")for i in tmp: print i creat[i] = tmp[i]
分类:
编程语言 时间:
2014-11-30 13:50:15
阅读次数:
200