https://leetcode.com/problems/regular-expression-matching/【描述】Implement regular expression matching with support for'.'and'*'.'.' Matches any single c...
分类:
其他好文 时间:
2015-09-20 06:59:37
阅读次数:
156
先占坑。以后再修改昨天遇到一道题, Given int Rand(1) = 0或者1- uniformly distributed, write a function to implement Rand(29) - uniformly distributed。由于本科时概率没学好,挂了。回来网上一....
分类:
其他好文 时间:
2015-09-20 00:04:25
阅读次数:
302
Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.Update (2014-11-02):The si...
分类:
其他好文 时间:
2015-09-17 23:22:37
阅读次数:
189
Linked list is a one of the most important topic in interviews. Because it uses dynamic memory and short lines can finish its implement. It is often u...
分类:
其他好文 时间:
2015-09-17 06:29:07
阅读次数:
137
9.1 A child is running up a staircase with n steps, and can hop either 1 step, 2 steps, or 3 steps at a time. Implement a method to count how many pos...
分类:
其他好文 时间:
2015-09-17 06:27:41
阅读次数:
142
Implement Stack using QueuesImplement the following operations of a stack using queues.push(x) -- Push element x onto stack.pop() -- Removes the eleme...
分类:
其他好文 时间:
2015-09-16 20:03:41
阅读次数:
130
一,MSDN LoggingSQL ServerIntegration Services includes log providers that you can use to implement logging in packages, containers, and tasks. With log...
分类:
其他好文 时间:
2015-09-16 19:58:44
阅读次数:
360
思路: 假设给定字符串用的是ASCII编码,那么总共就只有256个字符,新建一个256个元素的boolean数组, 遍历字符串,将出现的字符在boolean数组所在位置置 1。如果碰到已经置一,表明出现重复字符,返回false。public class IsUniqueChars_1 { ...
分类:
其他好文 时间:
2015-09-16 17:25:31
阅读次数:
143
************#import "HMViewController.h"@interface HMViewController () @property (nonatomic, weak) UIActivityIndicatorView *loadingView;@end@implement...
分类:
移动开发 时间:
2015-09-15 10:53:47
阅读次数:
247
The first day. chapter 1&2 Implement assignment function for below class CMyString.class CMyString{public: CMyString(char* pData = NULL); CMyStr...
分类:
其他好文 时间:
2015-09-15 09:20:42
阅读次数:
171