Urban ElevationsAn elevation of a collection of buildings is an orthogonal projection of the buildings onto a vertical plane. An external elevation of...
分类:
其他好文 时间:
2014-11-20 20:20:20
阅读次数:
272
在.NET中泛型使用非常频繁,在控制台应用程序中,默认的引入了System.Collection.Generics名称空间,其中就提供了我们经常使用的泛型:List和Dictionary,相信用过它们的都知道它们的强大。还有一种我们经常使用的简单的泛型:System.Nullable,即可空类型。我...
分类:
Web程序 时间:
2014-11-20 18:21:45
阅读次数:
287
Given a collection of numbers that might contain duplicates, return all possible unique permutations. For example,[1,1,2] have the following unique pe...
分类:
其他好文 时间:
2014-11-20 13:39:43
阅读次数:
108
StackOverflow上一个很有名的问题,gcc和g++到底有什么区别?答案如下:GCC: GNU Compiler Collection指的是GNU编译器所支持的所有不同的类型的语言gcc: GNU C Compilerg++:GNU C++ Compiler主要的区别在于:1.gcc会将.c...
分类:
其他好文 时间:
2014-11-19 23:50:38
阅读次数:
330
用java实现本地文件的遍历,顺便了解了下集合框架,注意java中还有Collections,是一个强大的工具,注意其与Collection的区别,在for(File f: listFiles) 中,如果不做 if(listFiles != null) 判断,在遍历到listFiles为空时,会报....
分类:
编程语言 时间:
2014-11-19 23:41:47
阅读次数:
315
一、引子:想要给ArrayList排序却发现没有排序方法?你有两种选择: 1、换用TreeSet; 2、使用Collection.sort(List list) / Collection.sort(List list, Comparator c)方法。二、展开分析Java的几种主要...
分类:
编程语言 时间:
2014-11-19 23:34:24
阅读次数:
315
Java集合框架集合框架图Collection接口提供了一组操作成批对象的方法,它提供了基本操作如添加、删除。ListList的最重要的特征就是有序;它会确保以一定的顺序保存元素。ArrayList:一个用数组实现的List。能进行快速的随机访问,但是往列表中间插入和删除元素的时候比较慢。Linke...
分类:
编程语言 时间:
2014-11-19 18:30:21
阅读次数:
166
一、 JSON
(JavaScript Object Notation)一种简单的数据格式,比xml更轻巧。
Json建构于两种结构:
1、“名称/值”对的集合(A
collection of name/value pairs)。不同的语言中,它被理解为对象(object),纪录(record),结构(struct),字典(dictionary),哈希表(hash ta...
分类:
移动开发 时间:
2014-11-19 12:42:23
阅读次数:
266
为什么会想到这个问题?因为我总是不自觉地将c++和java进行对比。java对这种情况的处理方式是constructor返回一个null,然后已经构造的objects交给Garbage Collector处理,那么c++没有Garbage Collector,会是怎么样的一种情况呢?为了找到这个问题...
分类:
移动开发 时间:
2014-11-19 07:25:51
阅读次数:
386
Updating a DictionaryIn this problem, a dictionary is collection of key-value pairs, where keys are lower-case letters, and values are non-negative in...
分类:
其他好文 时间:
2014-11-19 07:04:07
阅读次数:
223