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-06-24 21:08:10
阅读次数:
133
#26 Remove Duplicates from Sorted Array
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
Do not allocate extra space for ...
分类:
其他好文 时间:
2015-06-24 12:59:55
阅读次数:
121
About ActionBar The action bar is one of the most important design elements you can implement for your app's activities. It provides several user inte...
分类:
其他好文 时间:
2015-06-24 10:50:44
阅读次数:
132
Basic Calculator II问题:Implement a basic calculator to evaluate a simple expression string.The expression string contains onlynon-negativeintegers,+,-,...
分类:
其他好文 时间:
2015-06-24 10:47:29
阅读次数:
114
String to Integer (atoi)Total Accepted:
52232 Total Submissions:
401038
My Submissions
Question Solution
Implement atoi to convert a string to an integer.
Hint: Carefully conside...
分类:
其他好文 时间:
2015-06-24 00:47:23
阅读次数:
170
1. Question将字符串转换为整数,考虑各种输入情况:空格处理:开头空格省略有效数字:从第一个非空格字符开始的是+、-或数字,直到下一个非数字字符结束。加号处理:开头加号省略空串处理溢出处理无效数字处理Implement atoi to convert a string to an integ...
分类:
其他好文 时间:
2015-06-23 23:01:58
阅读次数:
197
Reverse Linked List
Reverse a singly linked list.
click to show more hints.
Hint:
A linked list can be reversed either iteratively or recursively. Could you implement both?
反转一个链表,用栈实现
...
分类:
其他好文 时间:
2015-06-23 10:18:18
阅读次数:
117
QRadioButton 控件是Qt中实现多选一功能的控件,它的使用方法如下:声明控件:QRadioButton *rbutton;然后实现它的响应函数:void YourClass::on_rbutton_toggled(bool state) { // Implement here if (.....
分类:
其他好文 时间:
2015-06-23 06:20:17
阅读次数:
202
Basic Calculator II
Implement a basic calculator to evaluate a simple expression string.
The expression string contains only non-negative integers, +, -, *, and / operators. The integer division...
分类:
其他好文 时间:
2015-06-22 14:59:42
阅读次数:
127
题目链接:https://leetcode.com/problems/regular-expression-matching/
Implement regular expression matching with support for '.' and '*'.
'.' Matches any single character.
'*' Matches zero or more...
分类:
其他好文 时间:
2015-06-21 18:38:10
阅读次数:
215