leetcode这道题还挺有意思的,实现通配符,'?'匹配任意字符,'*'匹配任意长度字符串,晚上尝试了一下,题目如下:Implement wildcard pattern matching with support for'?'and'*'.'?' Matches any single chara...
分类:
其他好文 时间:
2014-08-16 01:01:59
阅读次数:
351
单一职责原则1.1 我是“牛”类,我可以担任多职吗 单一职责原则的英文名称是Single Responsibility Principle,简称是SRP。这个设计原则备受争议,只要你想和别人争执、怄气或者是吵架,这个原则是屡试不爽的。如果你是老大,看到一个接口或类 是这样或那样设计的,你就问一句:“...
分类:
其他好文 时间:
2014-08-15 23:48:29
阅读次数:
474
原题:
Given an array of integers, every element appears three times except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it withou...
分类:
其他好文 时间:
2014-08-15 14:46:48
阅读次数:
207
Goldengate OGG常见问题与错误列表以下列出了OGG一些常见的问题与错误及其解答:Note: 966211.1How To Resync A Single Table With Minimum Impact To Other Tables’ Replication?Note: 966227...
分类:
其他好文 时间:
2014-08-14 20:24:09
阅读次数:
279
近日需要不同的编码,关于上述编码,一直迷迷糊糊,查了些资料,总算大致了解了,下面全是从网上搜来的:1.ASCII和Ansi编码 字符内码(charcter code)指的是用来代表字符的内码.读者在输入和存储文档时都要使用内码,内码分为 单字节内码 -- Single-Byte characte.....
分类:
其他好文 时间:
2014-08-14 19:56:19
阅读次数:
2307
Implement wildcard pattern matching with support for '?' and '*'.'?' Matches any single character.'*' Matches any sequence of characters (including th...
分类:
其他好文 时间:
2014-08-14 19:44:09
阅读次数:
134
开始研究php-fpm, 在php-fpm的官网上发现一些很有用的功能,记录一下1、支持php脚本执行慢的log记录; The timeout for serving a single request after which a PHP backtrace will be; dumped to t....
分类:
Web程序 时间:
2014-08-14 13:51:48
阅读次数:
216
你可能知道,Javascript语言的执行环境是"单线程"(single thread)。所谓"单线程",就是指一次只能完成一件任务。如果有多个任务,就必须排队,前面一个任务完成,再执行后面一个任务,以此类推。这种模式的好处是实现起来比较简单,执行环境相对单纯;坏处是只要有一个任务耗时很长,后面的任...
分类:
编程语言 时间:
2014-08-14 13:22:58
阅读次数:
211
学习笔记之《CNN: Single-label to Multi-label》...
分类:
其他好文 时间:
2014-08-13 19:03:37
阅读次数:
502
CCIE学习笔记之RSVPRouter(config-if)#iprsvpbandwidth[interface-kbps][single-flow-kbps]!EnablesRSVPforIPonaninterfaceRouter(config)#iprsvpsendersession-ip-addresssender-ip-address[tcp|udp|ip-protocol]session-dportsender-sportprevious-hop-ip-addressprevious-ho..
分类:
其他好文 时间:
2014-08-13 15:07:46
阅读次数:
309