码迷,mamicode.com
首页 >  
搜索关键字:weak reference    ( 6649个结果)
贪心专题
贪心: 原则是根据固定的一个或几个属性进行抉择.达到缩小规模的目的. split to steps and shrink scope reference最近做的几个贪心题目 hdu 1052(田忌赛马) 根据马的速度排序,然后两边最小值,最大值的判断.这样做是因为两端的选择是唯一的,TJ最弱的马/最强的如果可以战胜那就是最好的抉择,不然就让其去当炮灰.(减少规模)#include...
分类:其他好文   时间:2015-05-15 21:33:24    阅读次数:218
LeetCode "Course Schedule II"
This one lets you print out one topological sorted sequence. Either BFS or DFS works. But there are tricky details.This is my reference:https://leetco...
分类:其他好文   时间:2015-05-15 08:57:26    阅读次数:144
Android Bundle类
今天发现自己连Bundle类都没有搞清楚,于是花时间研究了一下。根据google官方的文档(http://developer.android.com/reference/android/os/Bundle.html)Bundle类是一个key-value对,“A mapping from Strin...
分类:移动开发   时间:2015-05-14 23:41:55    阅读次数:218
C++11 thread::detach(2)
原文地址:http://www.cplusplus.com/reference/thread/thread/detach/public member functionstd::thread::detachvoid detach();Detach threadDetaches the thread r...
分类:编程语言   时间:2015-05-14 20:31:23    阅读次数:152
java6,7,8中字符串池的进化史与深度剖析
这篇文章将要讨论 Java 6 中是如何实现 String.intern 方法的,以及这个方法在 Java 7 以及 Java 8 中做了哪些调整。 字符串池 字符串池(有名字符串标准化)是通过使用唯一的共享 String 对象来使用相同的值不同的地址表示字符串的过程。你可以使用自己定义的 Map (根据需要使用 weak 引用或者 soft 引用)并使用 ...
分类:编程语言   时间:2015-05-14 10:10:07    阅读次数:299
PetaPoco入门(二)
1. Petapoco基本用法1.1. 创建示例工程首先创建一个工程文件,为了便于展示数据这里创建一个类型为:WindowsApplication的工程文件。命名为:PetapocoTest。程序最终布局及功能预览如下:1.2. 添加petapoco包在项目文件的Reference上右键, 选择“管...
分类:其他好文   时间:2015-05-14 00:57:10    阅读次数:152
【iOS开发问题】添加UIImageView不显示的问题
今天用下面这个方法添加UIImageView但是运行却不显示@interface ViewController () @property(nonatomic, weak)UIImageView *imageView; @end@implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; UIImag...
分类:移动开发   时间:2015-05-13 19:47:24    阅读次数:152
coco2d-js 节点的属性和动作
官网:http://cn.cocos2d-x.org/文档:http://cn.cocos2d-x.org/doc/jsdoc/symbols/cc.Node.html#onEnter http://www.cocos2d-x.org/reference/html5-js/V3.0/index.ht...
分类:Web程序   时间:2015-05-13 19:35:50    阅读次数:264
how many different bst given n nodes?
Reference:http://stackoverflow.com/questions/3042412/with-n-no-of-nodes-how-many-different-binary-and-binary-search-trees-possibRecursion:t(0) = 1t(1)...
分类:其他好文   时间:2015-05-13 18:50:26    阅读次数:98
vs2012.net WebService简单的创建、使用、验证、发布后更改引用地址、web reference、service reference
工作中使用到较多的webservice,学习了一段时间,在这里总结一下在vs中使用webservice的过程和理解。 一 创建(服务器端)   在vs中穿件webservice是比较简单的。下面记录一下步骤。 步骤1:新建一个web项目,注意不能是类库。 步骤2:在新建的web项目上,添加新项--web服务; 自动生成的代码如下: /// /// WebService1 的摘...
分类:Web程序   时间:2015-05-13 13:04:32    阅读次数:282
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!