题目描述: Implement regular expression matching with support for '.' and '*'. 解题思路: 这道题如果只考虑“.”的话其实很好完成,所以解题的关键在于处理“*”的情况。以为“*”与前一个字母有关,所以应该整体考虑ch*……的情况。c ...
分类:
其他好文 时间:
2016-06-14 06:22:03
阅读次数:
394
1. 问题描述 Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not se ...
分类:
其他好文 时间:
2016-06-13 20:39:29
阅读次数:
224
这是一道非常高频,非常经典的题目: 首先分析下题意: Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get ...
分类:
系统相关 时间:
2016-06-12 21:46:17
阅读次数:
156
Code alt+F7:Find usage alt+command+L:格式化代码 alt+command+O:优化import(去掉无用的import) command+O:Override Methods command+I:Implement Methods command+B:Declar ...
分类:
移动开发 时间:
2016-06-12 12:12:25
阅读次数:
507
题目链接:https://leetcode.com/problems/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, plea...
分类:
其他好文 时间:
2016-06-12 03:25:55
阅读次数:
130
原题链接:https://leetcode.com/problems/reverse-linked-list/
题目:
Reverse a singly linked list.
Hint:
A linked list can be reversed either iteratively or recursively. Could you implement both?
...
分类:
其他好文 时间:
2016-06-12 03:03:53
阅读次数:
135
Lab4实验报告
Execrise 1
Implement mmio_map_region in kern/pmap.c.
// mmio_map_region()
uintptr_t ret = base;
size = ROUNDUP(size, PGSIZE);
base = base + size;
if (base >= MMIOLIM) {
panic("larg...
分类:
其他好文 时间:
2016-06-12 02:25:38
阅读次数:
438
Q:
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 entire ...
分类:
编程语言 时间:
2016-06-11 18:57:56
阅读次数:
207
model中直接获取添加公司的错误.(公司名称不能重复) $enterprise_id = $this->add($enterprisedata ); $err = $this->getDbError(); $err =="1062:Duplicate entry 'aaa' for key 'en ...
分类:
数据库 时间:
2016-06-11 17:19:22
阅读次数:
186