码迷,mamicode.com
首页 >  
搜索关键字:length    ( 19575个结果
计算指定日期的前N个月日期
/** * 计算指定日期的前N个月日期 * @param type $time * @param int $month_length * @return date */ public function calLMP($time,$month_length ){ $r = date('Y-m-d',....
分类:其他好文   时间:2014-06-27 22:14:21    阅读次数:270
.NET源码的内部排序实现
使用JetBrains的DotPeek工具可以方便地查看.net的部分源码。于是看了一下.NET的内部是如何实现排序的算法。 在System.Collections.Generic 命名空间下可以看到ArraySortHelper的实现。 public void Sort(T[] keys, int index, int length, IComparer comparer) { ...
分类:Web程序   时间:2014-06-25 19:20:12    阅读次数:299
Some useful methods about linkedList.
/** * Method 1: Delete the input element x  * and meanwhile keep the length of array after deleted n * @param a  the array * @param n  the length of array after deleted. * @param x  the element t...
分类:其他好文   时间:2014-06-25 08:27:27    阅读次数:171
LeetCode: Longest Consecutive Sequence [128]
【题目】 Given an unsorted array of integers, find the length of the longest consecutive elements sequence. For example, Given [100, 4, 200, 1, 3, 2], The longest consecutive elements sequence is [1, 2, 3, 4]. Return its length: 4. Your algorithm should run...
分类:其他好文   时间:2014-06-25 07:55:42    阅读次数:244
sqlserver表结构查询语句
SELECT syscolumns.name,systypes.name,syscolumns.isnullable,syscolumns.length FROM syscolumns, systypes WHERE syscolumns.xusertype = systypes.xusertype AND syscolumns.id= object_id('T_OA_WLWZ_DJB')...
分类:数据库   时间:2014-06-25 00:12:09    阅读次数:274
Effective C++:条款26:尽可能延后变量定义式的出现时间
(一) 那么当程序的控制流到达这个变量定义时,变承受构造成本;当变量离开作用域时,便承受析构成本。 string encryptPassword(const std::string& password) { using namespace std; string encrypted; if(password.length() < MinimumPasswordLengt) { t...
分类:编程语言   时间:2014-06-24 23:24:54    阅读次数:297
Longest Palindromic Substring
题目 Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring. 方法 ...
分类:其他好文   时间:2014-06-24 19:36:55    阅读次数:212
HTTP分块传输
HTTP分块传输用途对于在发送HTTP头部前,无法计算出Content-Length的HTTP请求及回复(例如WEB服务端产生的动态内容),可以使用分块传输,使得不至于等待所有数据产生后,再发送带有Content-Length的HTTP头部,而是将已经产生的数据一块一块发送出去。特点:1,HTTP ...
分类:其他好文   时间:2014-06-24 18:05:38    阅读次数:5902
解析json数组
解析json数组 JSONArray jsonArray = new JSONArray(markingStr); int iSize = jsonArray.length(); for (int i = 0; i < iSize; i++) { org.json...
分类:Web程序   时间:2014-06-24 14:37:30    阅读次数:214
无需考虑编码问题string转byte的方法
static byte[] GetBytes(string str){ byte[] bytes = new byte[str.Length * sizeof(char)]; System.Buffer.BlockCopy(str.ToCharArray(), 0, bytes, 0, ...
分类:其他好文   时间:2014-06-24 14:15:24    阅读次数:145
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!