码迷,mamicode.com
首页 >  
搜索关键字:length within range    ( 30083个结果
判断字符串和数组是否为空
1234567对于Arrayif (array && array.count) {}对于字符串Stringif (string && string.length && [string isEqualToString:@""])
分类:其他好文   时间:2014-05-16 04:22:18    阅读次数:249
获取设备mac地址和md5加密
SGMSettingConfig.h#import @interface SGMSettingConfig : NSObject{ NSInteger HTTP_PACKAGE_SIZE; NSInteger HTTP_RETRY_TIMES; NSInteger REPLY_LENGTH; ...
分类:其他好文   时间:2014-05-16 03:36:59    阅读次数:373
LeetCode Scramble String
class Solution {public: bool isScramble(string s1, string s2) { int len = s1.length(); if (len == 1 && s1[0] == s2[0]) return true; ...
分类:其他好文   时间:2014-05-16 00:38:48    阅读次数:317
asp.net 上传XML,txt 直接读取文件内容
if (GetUploadFileContent.PostedFile.InputStream.Length < 1) { Msg.Text = "请选择文件"; return; } string FileNam...
分类:Web程序   时间:2014-05-15 22:15:08    阅读次数:348
was unable to start within 45 seconds. If the server requires more time, try increasing the timeout
在eclipse启动tomcat时遇到超时45秒的问题: Server Tomcat v7.0 Server at localhost was unable to startwithin 45 seconds. If the server requires more time, try increasingthe timeout in the server editor. 网上解决办法...
分类:其他好文   时间:2014-05-15 18:31:36    阅读次数:242
链表程序实现
在这里实现了带头结点的链表,包含插入,删除,查询,清空链表一系列功能#includeusing namespace std;class LinkList{ char *elem; LinkList *next; static int length;public: LinkList(char *e) ...
分类:其他好文   时间:2014-05-15 18:05:31    阅读次数:271
Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:其他好文   时间:2014-05-15 17:50:38    阅读次数:298
Segment Tree - Sum of given range
简单点说其实Segment Tree就是二分法的灵活运用。 需要的基础知识: 1 二分法 2 二叉树 3 最好熟悉堆排序 操作就是二分法和堆排序巧妙地合并起来。 有了这些基础知识Segment Tree就没有任何难度了。 参考原文: http://www.geeksforgeeks.org/segment-tree-set-1-sum-of-given-range/ ...
分类:其他好文   时间:2014-05-15 13:33:33    阅读次数:250
UVA之1121 - Subsequence
【题目】 A sequence of N positive integers (10 N , each of them less than or equal 10000, and a positive integer S (S < 100 000 000) are given. Write a program to find the minimal length of the subse...
分类:其他好文   时间:2014-05-15 07:58:17    阅读次数:329
冒泡排序
算法原理: 第一趟:从j=0开始,比较相邻的两个数a[j]和a[j+1],如果a[j]>a[j+1],则交换他俩的位置,这样会将大的数放在后面。每比较一次让j++,当j=length-1时终止。 这样一趟走完,最后面的数应该是最大数。 那么第二趟,还是从0开始,只不过这次j的终止条件是j=length-2。第二趟走完,最后两个数应该是数组中最大的两个数并且有序排列。 重复若干趟,直到j的终...
分类:其他好文   时间:2014-05-15 07:56:49    阅读次数:238
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!