Valid Palindrome
Total Accepted: 22728 Total
Submissions: 99271My Submissions
Question
Solution
Given a string, determine if it is a palindrome, considering only alphanumeric char...
分类:
其他好文 时间:
2014-10-14 18:21:29
阅读次数:
218
1 class Solution { 2 public: 3 bool isPalindrome(string s) { 4 int strLen = s.size(); 5 int pos_h = 0; 6 int pos_t = 0; 7...
分类:
其他好文 时间:
2014-10-14 17:21:39
阅读次数:
129
Evaluate the value of an arithmetic expression in Reverse Polish Notation.Valid operators are +, -, *, /. Each operand may be an integer or another ex...
分类:
其他好文 时间:
2014-10-14 09:49:07
阅读次数:
219
DLX精确覆盖模版题.....
Sudoku
Time Limit: 10000MS
Memory Limit: 65536K
Total Submissions: 4416
Accepted: 2143
Description
A Sudoku grid is a 16x16 grid of c...
分类:
其他好文 时间:
2014-10-14 00:45:47
阅读次数:
360
Sudoku Solver
Total Accepted: 13937 Total
Submissions: 66832My Submissions
Write a program to solve a Sudoku puzzle by filling the empty cells.
Empty cells are indicated by the character...
分类:
其他好文 时间:
2014-10-14 00:40:37
阅读次数:
246
DLX精确覆盖.....模版题
Sudoku
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 8336
Accepted: 2945
Description
In the game of Sudoku, you are ...
分类:
其他好文 时间:
2014-10-13 23:32:57
阅读次数:
347
Evaluate the value of an arithmetic expression in Reverse Polish Notation.
Valid operators are +, -, *, /.
Each operand may be an integer or another expression.
Some examples:
["2", "1",...
分类:
编程语言 时间:
2014-10-13 20:33:47
阅读次数:
231
os7苹果公司加入了摄像头隐私设置选项:
在app中监测手机摄像头是否授权给APP:
#define PHOTOGRAPH_ACCREDIT if(VALID_VERSION(7.0)){ if(!([AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeVideo] == AVAuthorizationStatusAuthorized)){ UIAlertView * alt...
分类:
其他好文 时间:
2014-10-13 20:14:47
阅读次数:
177
Validate if a given string is numeric.Some examples:"0" => true" 0.1 " => true"abc" => false"1 a" => false"2e10" => trueNote: It is intended for the p...
分类:
其他好文 时间:
2014-10-13 14:29:49
阅读次数:
216
Validate Binary Search Tree
Total Accepted: 23828 Total
Submissions: 91943My Submissions
Given a binary tree, determine if it is a valid binary search tree (BST).
Assume a BST is defined...
分类:
其他好文 时间:
2014-10-12 17:40:38
阅读次数:
180