题目
Implement wildcard pattern matching with support for '?' and '*'.
'?' Matches any single character.
'*' Matches any sequence of characters (including the empty sequence).
The matching sh...
分类:
其他好文 时间:
2014-06-25 19:56:35
阅读次数:
275
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 it without using e...
分类:
其他好文 时间:
2014-06-24 23:30:08
阅读次数:
278
题目
Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set.
get(key) - Get the value (will always be positive) of the key...
分类:
其他好文 时间:
2014-06-24 22:45:43
阅读次数:
202
题目
Implement regular expression matching with support for '.' and '*'.
'.' Matches any single character.
'*' Matches zero or more of the preceding element.
The matching should cover the ent...
分类:
其他好文 时间:
2014-06-24 18:43:56
阅读次数:
224
微软近期Open的职位:MSIT Dynamics CRM Software Developer (SDE, Microsoft China, Beijing)Are you interested in shaping the future vision of how we implement Dy...
分类:
其他好文 时间:
2014-06-24 09:15:35
阅读次数:
302
Next Permutation:Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangeme...
分类:
其他好文 时间:
2014-06-22 23:35:19
阅读次数:
262
线性回归(linear regression)实践篇
之前一段时间在coursera看了Andrew ng的机器学习的课程,感觉还不错,算是入门了。这次打算以该课程的作业为主线,对机器学习基本知识做一下总结。小弟才学疏浅,如有错误,敬请指导。
问题原描述:
you will implement linear regression with one
variable to pred...
分类:
其他好文 时间:
2014-06-22 22:53:02
阅读次数:
361
模式匹配的实现,'?'代表单一字符,'*'代表任意多的字符,写代码实现两个字符串是否匹配。
Implement wildcard pattern matching with support for '?' and '*'.、
'?' Matches any single character.
'*' Matches any sequence of characters (inclu...
分类:
其他好文 时间:
2014-06-22 16:40:44
阅读次数:
225
Description: Implement pow(x,n).分析: 求幂次运算,典型的分治算法来解。 因为pow(x,n/2)*pow(x,n/2) 有着重复运算,分治法就会非常快O(log n) 1 class Solution { 2 public: 3 double findval...
分类:
其他好文 时间:
2014-06-21 07:26:08
阅读次数:
162
http://www.codejava.net/frameworks/spring/spring-mvc-sample-application-for-downloading-filesn this article, we are going to show you how to implement...
分类:
移动开发 时间:
2014-06-20 19:06:09
阅读次数:
623