码迷,mamicode.com
首页 >  
搜索关键字:empty    ( 6963个结果
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-08-16 13:42:40    阅读次数:200
sharepoint给文档授权
//在列表根目录下创建文件夹 public static string CreatFolderToSPDocLib(string strFolderName, string strDocLibName) { string FolderPath = string.Empty; try { using ...
分类:其他好文   时间:2014-08-15 12:11:08    阅读次数:159
对SQL语句进行过滤的函数
/// /// 过滤SQL非法字符串 /// /// /// public static string Filter(string value) { if (string.IsNullOrEmpty(value)) return string.Empty; value = Regex.Rep...
分类:数据库   时间:2014-08-14 00:56:27    阅读次数:278
[LeetCode] Scramble String(树的问题最易用递归)
Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possible representatio...
分类:其他好文   时间:2014-08-13 22:17:17    阅读次数:189
phpcms模板标签整理
{template "content","header"} 调用根目录下phpcms\template\content\header文件{CHARSET} 字符集(gbk或者utf-8){if isset($SEO['title']) && !empty($SEO['title'])}{$SEO['...
分类:Web程序   时间:2014-08-13 12:50:36    阅读次数:401
STL map
二维 map map >map.find(x) 查找,如果没有返回值是 map.end()bool(map[x]) 查找,但是一旦访问下标那么就会产生一个节点map.empty() 判空map.size() 大小
分类:其他好文   时间:2014-08-13 00:44:54    阅读次数:206
被empty()这么简单的函数给坑了俩个小时
在排查一个比较复杂的功能时,怎么查都结果不对,后来发现是因为empty()函数用错了!!!我理所当然的以为$list=array();if(empty(count($list))){ $course_rate = 0;}这样写没什么问题。。。。事实上这是错的。。。因为empty只能检查变量,不能检查...
分类:其他好文   时间:2014-08-12 18:15:24    阅读次数:220
Valid Sudoku 和 Sudoku Solver
题目一:Valid Sudoku Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules. The Sudoku board could be partially filled, where empty cells are filled with the character '.'. ...
分类:其他好文   时间:2014-08-12 17:21:54    阅读次数:250
.NET : Func委托和Action委托
上一篇我们讲到了如何在ASP.NET页面中实现异步任务。我们来回顾一下里面一个特殊的类型:LongTimeTaskpublic class LongTimeTask{ public string Result = string.Empty;public HelloWorldHandler handl...
分类:Web程序   时间:2014-08-12 16:59:04    阅读次数:256
Unique Paths II
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-08-12 16:40:14    阅读次数:157
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!