就是回溯吧。。class Solution {public: void solveSudoku(vector > &board) { huisu(0,0,board); } bool huisu(int row,int col ,vector > &board...
分类:
其他好文 时间:
2014-07-27 23:16:19
阅读次数:
232
1单闭合标签: input area frame col param2/img是inline还是block元素, inline不能设置宽和高,但img可以 block要单独一行,但img又不是。另外img可以设置宽和高,可以设置margin值。而img自身带有一定的margin值,所以其与下方...
分类:
Web程序 时间:
2014-07-27 22:45:59
阅读次数:
297
Knight Moves
Description
Background
Mr Somurolov, fabulous chess-gamer indeed, asserts that no one else but him can move knights from one position to another so fast. Can you beat him?
The P...
分类:
其他好文 时间:
2014-07-26 17:23:32
阅读次数:
590
1、确定矩阵行数: 使用每次读取一行函数fgets … row = 0; while(fgets(buf, buflen, fp) != NULL) row++; …2、确定矩阵列数:…rewind(fp);col = 0;ch = fgetc(fp);while(ch != ‘\n’){ if(c...
分类:
编程语言 时间:
2014-07-26 14:05:45
阅读次数:
265
最好的方法是:初始化4*3的二维数组a = [[0 for col in xrange(3)] for row in xrange(4)]而不可以用:a = [[0]*3]*4[0]*3是生成一个一维数组,再*4只是会复制出三个引用,当修改a[0][0]时,其他的三个引用的值也会发生改变,故这种方法...
分类:
编程语言 时间:
2014-07-26 01:50:56
阅读次数:
247
$.post( 'XXX.php', { col: value }, function(data) { var getData = eval( "(" + data + ")" ); //必须用括号,真蛋疼 alert( getData.xx ); });
分类:
Web程序 时间:
2014-07-26 00:09:46
阅读次数:
229
1、主要是设置Reduce端输出的value类型直接上代码吧:注释就免了吧,大家应该很熟悉了。package hbase;import java.io.IOException;import java.util.StringTokenizer;import org.apache.hadoop.conf...
分类:
其他好文 时间:
2014-07-25 19:04:02
阅读次数:
271
Hive 命令行
Hive 命令行示例
?从命令行执行指定的sql语句
?$HIVE_HOME/bin/hive -e 'select a.col from tab1 a'
?以指定的hive环境变量执行指定的sql语句
?$HIVE_HOME/bin/hive -e 'select a.col from tab1 a' -hiveconf hive.exec.scr...
分类:
其他好文 时间:
2014-07-24 23:11:14
阅读次数:
256
Home ?|? Mirror ?|? Search ?|? 杂文 ?|? ITEYE 博客 ?|? OSChina 博客 ?|? 51CTO 博客 ?|? Linkedin PHP 高级编程之多线程 http://netkiller.github.io/journal/thread.php.html Mr.?Neo Chen?...
分类:
编程语言 时间:
2014-07-24 10:55:14
阅读次数:
618
压缩优化
由于hadoop的很多结果都是由mr触发,mr中间伴随着很多硬盘IO。
所以这里需要启用压缩算法,减少IO数据量,减少IO时间。
症状表现:运行时看到
2014-07-14 18:13:09,386 WARN util.NativeCodeLoader - ...
分类:
其他好文 时间:
2014-07-22 09:03:05
阅读次数:
199