码迷,mamicode.com
首页 >  
搜索关键字:reference value    ( 43034个结果
[LeetCode] Search for a Range
Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the ord...
分类:其他好文   时间:2014-06-28 19:23:45    阅读次数:200
C#通用类型转换 Convert.ChangeType 转自网络
static public object ChangeType(object value, Type type) { if (value == null && type.IsGenericType) return Activator.CreateInstance(...
分类:其他好文   时间:2014-06-28 18:28:53    阅读次数:212
【leetcode】Search a 2D Matrix
Write an efficient algorithm that searches for a value in anmxnmatrix. This matrix has the following properties:Integers in each row are sorted from l...
分类:其他好文   时间:2014-06-28 15:14:05    阅读次数:194
c# dictionary 学习
//Dictionary的Value为一个数组public static void DicSample2() { Dictionary dic = new Dictionary(); String[] ZheJiang = { "Huzhou", "HangZhou", "Tai...
分类:其他好文   时间:2014-06-28 14:07:31    阅读次数:177
利用替换的功能生成指定类型的属性
正则表达式 查找{[a-zA-Z0-9]+} 替换成字符串属性 #region \1\n private string _\1 = "";\n public string \1\n {\n get \n {\n return _\1;\n }\n set \n {\n _\1 = value;\n ...
分类:其他好文   时间:2014-06-28 14:06:50    阅读次数:127
算法: 排序: 快速排序
1. Algrithom?Given an array of values, pick a value as a pivot value?Check each value against the pivot value and - bring each value higher than the p...
分类:其他好文   时间:2014-06-28 13:41:01    阅读次数:201
json.net
using Newtonsoft.Json; JsonSerializerSettings set=new JsonSerializerSettings (); set.DateFormatString="yyyy-MM-dd hh:mm:ss"; hid.Value = JsonConvert.S...
分类:Web程序   时间:2014-06-28 13:37:02    阅读次数:308
JAVA中的四种引用
在JDK1.2曾经,JAVA中对引用的定义是:假设reference类型的数据中存储的数值代表的是另外一块内存的起始地址,就称这块内存代表着一个引用。这样的定义非常easy,并且非常纯粹,可是,对于这一类的对象:当内存空间还足够时,则保留在内存之中;假设内存空间在进行GC之后还是不够用,则回收这些对...
分类:编程语言   时间:2014-06-28 12:56:13    阅读次数:217
正规则表达式判断数字
用正则表达式判断。如果你说的纯数字是指整数的话(不包含小数点),可以这样:function check(){var value = document.getElementById("inputId").value;var reg=/^[1-9]\d*$|^0$/; // 注意:故意限制了 032.....
分类:其他好文   时间:2014-06-20 15:58:50    阅读次数:190
[LeetCode] Search a 2D Matrix
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:Integers in each row are sorted fr...
分类:其他好文   时间:2014-06-20 15:29:46    阅读次数:233
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!