码迷,mamicode.com
首页 >  
搜索关键字:single    ( 5020个结果
Leetcode: Regular Expression Matching
Implement regular expression matching with support for '.' and '*'.'.' Matches any single character.'*' Matches zero or more of the preceding element....
分类:其他好文   时间:2014-10-13 09:28:09    阅读次数:384
HDoj-1013
Problem Description The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root. If the resultin...
分类:其他好文   时间:2014-10-12 19:46:59    阅读次数:205
单例模式
单例模式是比较常用的设计模式,他的主要功能是该类只能产生一个对象,即每次使用该类的对象使用的是同一个对象。这个对象由该类自己产生,同时由该类向系统提供。 下面看他的一种具体实现 package single; public class Danli { private static Danli dan = null; private Danli(){ //可以对初始对象进行一些相应...
分类:其他好文   时间:2014-10-12 13:29:28    阅读次数:193
面向对象设计的SOLID原则
面向对象设计的SOLID原则 SRP The Single Responsibility Principle 单一责任原则 OCP The Open Closed Principle 开放封闭原则 LSP The Liskov Substitution Principle 里氏替换原则 DIP The Dependency Inversion Principle 依赖倒置原则 ISP...
分类:其他好文   时间:2014-10-12 11:50:17    阅读次数:250
Ansi,UTF8,Unicode,ASCII编码的差别
近日须要不同的编码,关于上述编码,一直迷迷糊糊,查了些资料,总算大致了解了,以下全是从网上搜来的:1.ASCII和Ansi编码 字符内码(charcter code)指的是用来代表字符的内码.读者在输入和存储文档时都要使用内码,内码分为 单字节内码 -- Single-Byte charact...
分类:其他好文   时间:2014-10-11 16:36:55    阅读次数:242
基于单个 div 的 CSS 绘图
原文: Single Div Drawings with CSS 译文: 基于单个 div 的 CSS 绘图 译者: 前端外刊评论 译注:通读本文,强烈地感受到了技术与艺术的结合!赞作者的这句话:Restricting your available options forces you to re-evaluate the tools you already have. ...
分类:Web程序   时间:2014-10-11 11:21:25    阅读次数:405
Printing a Binary Tree in Level Orders
BFS:Is it possible that a solution exists using only one single queue? Yes, you bet. The single queue solution requires two extra counting variables w...
分类:其他好文   时间:2014-10-11 03:37:04    阅读次数:190
WordPress页面函数功能代码调用大全
WordPress模板基本文件style.css 样式表文件index.php 主页文件single.php 日志单页文件page.php 页面文件archvie.php 分类和日期存档页文件searchform.php 搜索表单文件search.php 搜索yemian文件comments.php...
分类:其他好文   时间:2014-10-10 21:56:54    阅读次数:242
Javascript异步编程的4种方法
你可能知道,Javascript语言的执行环境是"单线程"(single thread)。 所谓"单线程",就是指一次只能完成一件任务。如果有多个任务,就必须排队,前面一个任务完成,再执行后面一个任务,以此类推。 这种模式的好处是实现起来比较简单,执行环境相对单纯;坏处是只要有一个任务耗时很长,后面的任务都必须排队等着,会拖延整个程序的执行。常见的浏 览器无响应(假死),往往就...
分类:编程语言   时间:2014-10-10 17:33:44    阅读次数:292
JAVA学习第二十五课(多线程(四))- 单例设计模式涉及的多线程问题
一、多线程下的单例设计模式 利用双重判断的形式解决懒汉式的安全问题和效率问题 //饿汉式 /*class Single { private static final Single t = new Single(); private Single(){} public static Single getInstance() { return t; } } */ //懒汉式...
分类:编程语言   时间:2014-10-10 00:56:53    阅读次数:271
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!