码迷,mamicode.com
首页 >  
搜索关键字:single    ( 5020个结果
HDU4323-Magic Number(levenshtein distance-编辑距离)
描述: There are many magic numbers whose lengths are less than 10. Given some queries, each contains a single number, if the Levenshtein distance (see ....
分类:其他好文   时间:2015-08-26 13:37:17    阅读次数:211
leetcode——Regular Expression Matching
‘.‘?Matches?any?single?character. ‘*‘?Matches?zero?or?more?of?the?preceding?element. The?matching?should?cover?the?entire?input?string?(not?partial). The?function?prototype...
分类:其他好文   时间:2015-08-26 10:51:44    阅读次数:123
[LeetCode#44]Wildcard Matching
Problem:Implement wildcard pattern matching with support for '?' and '*'.'?' Matches any single character.'*' Matches any sequence of characters (incl...
分类:其他好文   时间:2015-08-26 07:02:48    阅读次数:212
Cube Stacking
Description Farmer John and Betsy are playing a game with N (1 <= N <= 30,000)identical cubes labeled 1 through N. They start with N stacks, each containing a single cube. Farmer John asks Betsy to p...
分类:其他好文   时间:2015-08-26 01:56:28    阅读次数:174
单例模式
//饿汉式单例类.在类初始化时,已经自行实例化   public class Singleton1 {      private Singleton1() {}      private static final Singleton1 single = new Singleton1();      //静态工厂方法       public static Singleton1 getInstanc...
分类:其他好文   时间:2015-08-25 23:50:50    阅读次数:169
LeetCode: SingleNumIII
题目链接:https://leetcode.com/problems/single-number-iii/ 题目: Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the...
分类:编程语言   时间:2015-08-25 21:34:38    阅读次数:145
iOS8新建一个新的空白工程
iOS8新建一个新的空白工程--妖妖1.新建一个工程,然后新建一个single view application2.在工程的资源目录中找到Supporting Files->Info.plist 文件,删除里面的Launch screen interface file base name 和 Mai...
分类:移动开发   时间:2015-08-25 19:10:36    阅读次数:152
python学习之——single number
Given an array of integers, every element appearstwiceexcept for one. Find that single one.思路:队列排序,两两个对比,找出不相同的一个
分类:编程语言   时间:2015-08-25 18:48:35    阅读次数:127
【软件设计】六大设计原则讲解
1. 单一职责原则 -Single Responsibility Principle SRP,Single Responsibility Principle: There should never be more than one reason for a class to change. 应该有且仅有一个原因引起类的变更。(如果类需要变更,那么只可能仅由某一个原因引起)...
分类:其他好文   时间:2015-08-21 23:19:23    阅读次数:249
Single Number II
其实就是设置三个标志位,出现一次标志位1对应的bit变为1,出现两次标志位2对应的bit变为1,出现三次标志位三对应的bit变为1.理解了这种思路,代码也就不难写了。class Solution {public: int singleNumber(vector& nums) { ...
分类:其他好文   时间:2015-08-21 19:14:02    阅读次数:110
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!