码迷,mamicode.com
首页 >  
搜索关键字:empty    ( 6963个结果
【LeetCode】Scramble String
Scramble StringGiven a strings1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possible...
分类:其他好文   时间:2014-12-06 12:44:32    阅读次数:187
八皇后问题(回溯)
publicclassQueen{ intQUEEN_COUNT=8;//随便你定义几个皇后了,你可以循环产生a个到b个皇后的解 staticfinalintEMPTY=0;//如果count[x][y]==EMPTY,则可以放置皇后;反之,其正上方或斜上方必己放置皇后 int[][]count=newint[QUEEN_COUNT][QUEEN_COUNT];// int[]QueenIndex=new..
分类:其他好文   时间:2014-12-06 06:40:17    阅读次数:205
【Leetcode】【Easy】Length of Last Word
Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word doe...
分类:其他好文   时间:2014-12-05 23:59:22    阅读次数:322
php yii memcache
php的yii框架的memcache的用发实例: $cache_key = ‘ALL_GROUPS_‘.$this->city_id; $groups_data=Yii::app()->Memcache->get($cache_key); if(empty($group_data)){ //楼盘api $groups_api = str_replace(‘%s‘, $...
分类:Web程序   时间:2014-12-05 17:39:25    阅读次数:167
Pyton的类特性
Python的类很类似一个容器,而且还是一个动态的容器,可以随时往里面增加内容:包括它的函数,成员。 例如如下的这个例子,默认创建一个空的python类,如果忘记了给他添加成员函数,则可以这么做 class Empty: pass 1.增加构造函数 #这里必须要传入一个参数 #该参数也就是调用方的输入数据 #这里就是Empty的一个实例对象 def empt...
分类:其他好文   时间:2014-12-05 17:34:02    阅读次数:164
【leetcode】 Unique Path ||(easy)
Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space i...
分类:其他好文   时间:2014-12-05 17:18:34    阅读次数:121
CI框架学习之文件上传功能
在控制器中添加一个upload.php文件,代码如下load->view('up'); } public function up(){ if(!empty($_POST['sub'])){ $file=$_FILES['upfile']; ...
分类:Web程序   时间:2014-12-05 17:00:13    阅读次数:167
Sudoku Solver
Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character'.'.You may assume that there will be on...
分类:其他好文   时间:2014-12-04 13:53:10    阅读次数:99
[LeetCode] Sudoku Solver 解数独,递归,回溯
Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character'.'.You may assume that there will be on...
分类:其他好文   时间:2014-12-04 00:55:16    阅读次数:354
[LeetCode] Length of Last Word 字符串查找
Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word doe...
分类:其他好文   时间:2014-12-04 00:46:14    阅读次数:164
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!