码迷,mamicode.com
首页 >  
搜索关键字:generic algorithm    ( 18934个结果
线程间操作无效: 从不是创建控件的线程访问它.
1 using System; 2 using System.Collections.Generic; 3 using System.ComponentModel; 4 using System.Data; 5 using System.Drawing; 6 using System.Linq; ....
分类:编程语言   时间:2014-05-26 07:01:59    阅读次数:261
简单数据类型转换
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleProgamming{ class Program { static void Main(string...
分类:其他好文   时间:2014-05-26 07:00:58    阅读次数:182
如何查看linux系统是32位还是64位
如何查看linux系统是32位还是64位 2010-11-22 17:00:34分类: LINUX1.#uname -a如果有x86_64就是64位的,没有就是32位的这是64位的# uname -aLinux desktop 2.6.35-23-generic #37-Ubuntu SMP Fri...
分类:系统相关   时间:2014-05-26 06:51:11    阅读次数:456
.net下BerkeleyDB操作封装C#版(附单元测试)
using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Runtime.Serialization.Formatters.Binary;using System.Text...
分类:数据库   时间:2014-05-26 06:18:47    阅读次数:443
【leetcode】Simplify Path
题目:将给定的路径名简化,返回最简形式。 path = "/home/", => "/home" path = "/a/./b/../../c/", => "/c" 虽然咋看起来比较杂乱,但还是比较整齐的,每个部分由‘/‘进行分割,就像文本处理中,由空格或tab分割的单词一样,对得到的不同的分割此进行不同的处理。得到的可能的分割词包括: string simplifyP...
分类:其他好文   时间:2014-05-26 06:13:24    阅读次数:213
【leetcode】Unique Paths II
题目:与版本一不同的是,这里给定了一个矩阵,矩阵中元素为0的点表示该点可达,为1的点表示不可达,当然,不可达也就意味着不可经过。以左上角为出发点,右下角为目标终点,可行的不同路径有多少。 分析: 在Uniqu Paths I 的基础上,加上对矩阵可达性的判断就可以了。 注意: 1.左上角的元素是1的时候,即出发点就不可达,即出发不了,倒在了起跑线上。 2.给定的矩阵是1*1的形式。 3...
分类:其他好文   时间:2014-05-26 05:48:24    阅读次数:247
LeetCode:3Sum Closest
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have exact...
分类:其他好文   时间:2014-05-25 00:46:51    阅读次数:229
NVelocity 类操作模板
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Web;using System.IO;using NVelocity.App;using NVelocity...
分类:其他好文   时间:2014-05-24 13:17:32    阅读次数:198
整理常用函数
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Runtime.InteropServices;namespace WindowsAPI{class CSha...
分类:其他好文   时间:2014-05-24 12:59:58    阅读次数:366
C#泛型集合—Dictionary<K,V>使用技巧
[csharp]view plaincopy1、要使用Dictionary集合,需要导入C#泛型命名空间 System.Collections.Generic(程序集:mscorlib)2、描述 1)、从一组键(Key)到一组值(Value)的映射,每一个添加项都是由一个值及其相关连的键组成 ...
分类:其他好文   时间:2014-05-24 11:53:21    阅读次数:297
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!