Given an array of integers, every element
appears twice except for one. Find that single one. Note: Your algorithm should
have a linear runtime comple...
分类:
其他好文 时间:
2014-05-23 07:22:48
阅读次数:
241
1、用以说明生成工具(如MICROSOFT FRONTPAGE 4.0)等;
2、向搜索引擎说明你的网页的关键词; 3、告诉搜索引擎你的站点的主要内容; 4、告诉搜索引擎你的站点的制作的作者; 5、 其中的属性说明如下:
设定为ALL:文件将被检索,且页面上的链接可以被查询; 设定为N...
分类:
其他好文 时间:
2014-05-23 06:32:51
阅读次数:
314
用户没权限sudo:root登录,cd /etc/chmod u+w sudoersvi
/etc/sudoers添加 username ALL=(ALL) ALL , 保存退出chmod u-w sudoers---中文字体乱码:sudo
dpkg-reconfigure locales选择zh_...
分类:
系统相关 时间:
2014-05-23 04:05:00
阅读次数:
422
1 // 2 // LWTViewController.m 3 // 纯代码位移和伸缩作业 4 //
5 // Created by apple on 14-5-20. 6 // Copyright (c) 2014年 lwt. All rights
reserved. 7 ...
分类:
其他好文 时间:
2014-05-23 04:03:01
阅读次数:
467
1 // 2 // LWTViewController.m 3 // 纯代码-QQ登陆 4 // 5
// Created by apple on 14-5-21. 6 // Copyright (c) 2014年 lwt. All rights
reserved. 7 // ...
分类:
其他好文 时间:
2014-05-23 04:00:21
阅读次数:
212
【题目】
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.
Each number in C may only be used once in the combination.
Note:
All numbers (including target) will be ...
分类:
其他好文 时间:
2014-05-21 15:55:25
阅读次数:
259
【题目】
Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.
The same repeated number may be chosen from C unlimited number of times.
Note:
All numbers (including target) w...
分类:
其他好文 时间:
2014-05-21 15:21:28
阅读次数:
292
【题目】
The count-and-say sequence is the sequence of integers beginning as follows:
1, 11, 21, 1211, 111221, ...
1 is read off as "one 1" or 11.
11 is read off as "two 1s" or 21.
21 is read off as "one 2, then one 1" or 1211.
Given an integer n, generate...
分类:
其他好文 时间:
2014-05-21 15:20:07
阅读次数:
213
最近闲来无事写了一个统计C或者C++代码行数的程序,主要用到了python以及正则表达式
#-*-coding:utf-8
#!/usr/bin/python
import re
import os
import sys
'''get the file or dir in one path'''
def getfilename(path):
if os.path.exi...
分类:
编程语言 时间:
2014-05-21 15:06:30
阅读次数:
379
原因:MinGW没有安装c编译器。
MinGW的安装管理器的"Basic Setup"栏目找不到c编译器:
在“All Packages”->"MSYS"->"MSYS System Builder"栏目中勾选"msys-gcc":...
分类:
Windows程序 时间:
2014-05-21 13:48:54
阅读次数:
1228