码迷,mamicode.com
首页 >  
搜索关键字:empty    ( 6963个结果
LeetCode --- 58. Length of Last Word
Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string. If the last word does not exist, return 0. Note: A word is defin...
分类:其他好文   时间:2015-03-15 00:55:38    阅读次数:170
LeetCode-87 Scramble String
Given a strings1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possible representation...
分类:其他好文   时间:2015-03-15 00:36:38    阅读次数:159
四行代码获取公网IP地址
uses msxml, RegularExpressions; function GetPublicIP:string; var req: IXMLHTTPRequest; begin req := CoXMLHTTP.Create; req.open('get', 'http://city.ip138.com/ip2city.asp', False, EmptyStr, Empty...
分类:其他好文   时间:2015-03-13 18:50:48    阅读次数:119
Rails :.nil? , .empty?, .blank? .present? 的区别
.nil? , .empty?, .blank? .present? 的区别首先这三个都是判空的。 而 .nil? 和 .empty? 是ruby的方法。 .blank? 是rails的方法.nil? 判断对象是否存在(nil)。不存在的对象都是nil的.empty? 对象已经存在,判断是否为...
分类:其他好文   时间:2015-03-13 10:33:36    阅读次数:203
【LeetCode】Majority Element
Given an array of size n, find the majority element. The majority element is the element that appears more than ? n/2 ? times. You may assume that the array is non-empty and the majority element always exist in the array....
分类:其他好文   时间:2015-03-13 00:26:46    阅读次数:204
LeetCode Majority Element
1.题目Given an array of size n, find the majority element. The majority element is the element that appears more than ? n/2 ? times.You may assume that the array is non-empty and the majority element al...
分类:其他好文   时间:2015-03-12 20:53:53    阅读次数:109
leetcode 98. 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...
分类:其他好文   时间:2015-03-12 18:42:30    阅读次数:120
C++编译器默默编写并调用哪些函数
什么时候empty class(空类)不再是个empty class呢?当C++处理过它之后,是的,如果你自己没有声明,编译器就会为它声明(编译器版本)一个copy构造函数、一个copy assignment操作符和一个析构函数。此外如果你没有声明任何构造函数,编译器也会为你声明一个default构...
分类:编程语言   时间:2015-03-12 18:31:00    阅读次数:127
【LeetCode从零单排】No.169 Majority Element(hashmap用法)
题目Given an array of size n, find the majority element. The majority element is the element that appears more than ? n/2 ? times.You may assume that the array is non-empty and the majority element alwa...
分类:其他好文   时间:2015-03-12 11:31:13    阅读次数:132
cocos2d-x在mac的lua执行程序
正常生成.app执行脚本"路径/Contents/MacOS/lua-empty-test Mac"这样就和播放器基本一样
分类:系统相关   时间:2015-03-12 00:51:31    阅读次数:214
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!