1.first of all,take a lookup on the left side
of keyword const.If there is something(type or pointer),then apply const
featureto it.2.nothing found on...
分类:
编程语言 时间:
2014-05-06 00:38:25
阅读次数:
361
Problem
Link:http://oj.leetcode.com/problems/word-ladder/Two typical techniques are
inspected in this problem:Hash Table. One hash set is the words di...
分类:
其他好文 时间:
2014-05-05 22:44:44
阅读次数:
393
c语言中的二进制输出是没有占位符的,不像八进制:%o; 和十六进制:x%;c中二进制的输出 1
//右移31位,从最高为开始和1做&运算,得到每一位的二进制数值 2 void printbinry(int num) 3 { 4 int count
= (sizeof(num)=0) { 6 ...
分类:
编程语言 时间:
2014-05-05 22:37:02
阅读次数:
431
1.编译kernel进入源码根目录make defconfig
//这一步生成了默认的内核配置,请参考make help生成的信息。make //这一步生成了bzImage2.制作根文件系统dd if=/dev/zero
of=rootfs.img bs=1M count=10 //生成了rootf...
分类:
系统相关 时间:
2014-05-03 23:59:39
阅读次数:
592
题目:193 - Graph Coloring
题目大意:给出一个图,图里面有点和边,要求相邻的点不可以都是黑色的,问怎样上色黑色的点最多的,给出字典序最大的那种组合情况。#include
#include
const int N = 105;
int n, m, s[N][N], ans[N], cas, count, vis[N];
bool judge (int x, in...
分类:
其他好文 时间:
2014-05-03 17:22:31
阅读次数:
282
Where's Waldorf?
Given a m by n grid
of letters, ( ),
and a list of words, find the location in the grid at which the word can be found. A word matches a straight, uninterrupted line o...
分类:
其他好文 时间:
2014-05-02 10:59:15
阅读次数:
514
许多次通过,主要是没有考虑到这种情况:“A C ”结尾有多重空格的情况。 1 public class
Solution { 2 public int lengthOfLastWord(String s) { 3 int j, k; 4 if(s == nu...
分类:
其他好文 时间:
2014-05-02 08:21:00
阅读次数:
300
现象:rengh@rengh-vm:~$ sudo apt-get install
ia32-libs[sudo] password for rengh: 正在读取软件包列表... 完成正在分析软件包的依赖关系树 正在读取状态信息... 完成
现在没有可用的软件包 ia32-...
分类:
其他好文 时间:
2014-05-02 05:42:49
阅读次数:
308