码迷,mamicode.com
首页 >  
搜索关键字:single    ( 5020个结果
单例模式
//饿汉式单例类.在类初始化时,已经自行实例化. //典型的空间换时间? public?class?Singleton1?{ ????private?Singleton1()?{} ????private?static?final?Singleton1?single?=?new?Singlet...
分类:其他好文   时间:2015-08-10 18:21:13    阅读次数:106
LeetCode Notes Regular Expression Matching
先来题目:'.' Matches any single character.'*' Matches zero or more of the preceding element.The matching should cover the entire input string (not parti.....
分类:其他好文   时间:2015-08-10 17:40:23    阅读次数:106
Sequence contains no matching element
1、linq查询Single方法出错 var c = DbCache.UserRoles.Single(ur => ur.RoleId == roleId);2、使用方法System.Linq.Enumerable命名空间下的Single方法查询数据时,数据源count=0,或者返回count为0都...
分类:其他好文   时间:2015-08-10 16:11:16    阅读次数:193
Add Two Numbers
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link...
分类:其他好文   时间:2015-08-10 00:24:55    阅读次数:93
Animation & Spritesheets
A sprite is a single graphic image. It can be moved around the screen, stretched, rotated, skewed, faded and tinted. A?spritesheet?is a collection of sprites into a single texture file. This mak...
分类:其他好文   时间:2015-08-09 12:47:20    阅读次数:402
SSD的SLC MLC 和TLC哪个好?
SLC = Single-Level Cell ,即1bit/cell,速度快寿命长,价格超贵(约MLC 3倍以上的价格),约10万次擦写寿命MLC = Multi-Level Cell,即2bit/cell,速度一般寿命一般,价格一般,约3000---10000次擦写寿命TLC = Trinary...
分类:其他好文   时间:2015-08-09 07:11:41    阅读次数:159
iOS ARC 下的单例模式
#import @interface RYSingleExample : NSObject +(instancetype)singleExample; @end#import "RYSingleExample.h" static id _single; @implementation RYS...
分类:移动开发   时间:2015-08-08 19:43:40    阅读次数:121
Topcoder SRM 663 Div2 Hard: CheeseRolling(状压DP)
Problem Statement   N people (where N is a power of 2) are taking part in a single-elimination tournament in cheese rolling. The diagram below illustrates the structure of the tournament br...
分类:其他好文   时间:2015-08-08 18:18:27    阅读次数:159
regular expression matching DP
这个题目,我从前天晚上(8月6号晚上)调试到现在(8月8号16:21),太心酸了,不好好总结一下,就太对不起自己了!这是题目:Implement regular expression matching with support for'.'and'*'.'.' Matches any single ...
分类:其他好文   时间:2015-08-08 18:13:54    阅读次数:87
Mysql主从搭建(1)
Master上授权从库:```grant replication slave on *.* to slave1@ip identified by 'password';```逻辑备份:```mysqldump --single-transaction --master-data database -...
分类:数据库   时间:2015-08-08 10:30:29    阅读次数:203
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!