问题是这样子的: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
本文主要讲解将CNN应用于人脸识别的流程,程序基于python+numpy+theano+PIL开发,采用类似LeNet5的CNN模型,应用于olivettifaces人脸数据库,实现人脸识别的功能,模型的误差降到了5%以下。本程序只是个人学习过程的一个toy implement,模型可能存在overfitting,因为样本小,这一点也无从验证。
但是,本文意在理清程序开发CNN模型的具体步骤,特别是针对图像识别,从拿到图像数据库,到实现一个针对这个图像数据库的CNN模型,我觉得本文对这些流程的实现具有参考...
分类:
其他好文 时间:
2015-01-30 09:13:55
阅读次数:
452
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
# -*- 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
问题描述;
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
【题目】
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
题目链接: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
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
题目链接: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
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