码迷,mamicode.com
首页 >  
搜索关键字:implement strstr    ( 2381个结果
LeetCode 8 :String to Integer (atoi)
问题是这样子的:Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you want a challenge, please do not see...
分类:其他好文   时间:2015-01-30 15:08:07    阅读次数:163
DeepLearning tutorial(5)CNN卷积神经网络应用于人脸识别(详细流程+代码实现)
本文主要讲解将CNN应用于人脸识别的流程,程序基于python+numpy+theano+PIL开发,采用类似LeNet5的CNN模型,应用于olivettifaces人脸数据库,实现人脸识别的功能,模型的误差降到了5%以下。本程序只是个人学习过程的一个toy implement,模型可能存在overfitting,因为样本小,这一点也无从验证。 但是,本文意在理清程序开发CNN模型的具体步骤,特别是针对图像识别,从拿到图像数据库,到实现一个针对这个图像数据库的CNN模型,我觉得本文对这些流程的实现具有参考...
分类:其他好文   时间:2015-01-30 09:13:55    阅读次数:452
136.Single Number
Given an array of integers,every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement itwithout using extra m...
分类:其他好文   时间:2015-01-30 09:10:45    阅读次数:247
[Leetcode][Python]28: Implement strStr()
# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'28: Implement strStr()https://oj.leetcode.com/problems/implement-strstr/Implement strStr()...
分类:编程语言   时间:2015-01-30 06:40:37    阅读次数:221
[leetcode] 44 Wildcard Matching
问题描述; Implement wildcard pattern matching with support for '?' and '*'. '?' Matches any single character. '*' Matches any sequence of characters (including the empty sequence). The matching shou...
分类:其他好文   时间:2015-01-29 22:34:30    阅读次数:130
[LeetCode]50.Pow(x, n)
【题目】 Implement pow(x, n). 【分析】 采用分治思想。 对于n是奇数时,x^n = x^(n/2)*  x^(n/2)* x 对于n是偶数时,x^n = x^(n/2)*  x^(n/2)       x^(n/2)用一个变量sub记录,x^n = sub * sub * x^(n % 2)  这样 x^(n/2)就计算一次 注意:n有可能是负数  ...
分类:其他好文   时间:2015-01-29 17:35:58    阅读次数:172
LeetCode --- 10. Regular Expression Matching
题目链接:Regular Expression Matching Implement regular expression matching with support for '.' and '*'. '.' Matches any single character. '*' Matches zero or more of the preceding element. The match...
分类:其他好文   时间:2015-01-28 21:29:00    阅读次数:318
iOS复习笔记2:Objective-C语法基础
1 关键字 关键字基本上都是以@开头,常见关键字如下: @interface,@implement,@end,@public,@private,@selector,@required,@encode等 其他id,self,super等 2 字符串以@开头 @"Hello world!" 3 布尔类型Yes/No 4 空类型nil(值为0) 5 其他C...
分类:移动开发   时间:2015-01-28 19:48:22    阅读次数:201
LeetCode --- 8. String to Integer (atoi)
题目链接:String to Integer (atoi) Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself w...
分类:其他好文   时间:2015-01-28 14:44:37    阅读次数:154
leetcode.8---------------String to Integer (atoi)
Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible input ca...
分类:其他好文   时间:2015-01-28 09:46:19    阅读次数:208
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!