DescriptionYou are given a number of case-sensitive strings of alphabetic characters, find the largest string X, such that either X, or its inverse ca...
分类:
其他好文 时间:
2015-01-20 20:27:10
阅读次数:
191
标题:Length of Last Word通过率:28.8%难度:简单Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last wor...
分类:
其他好文 时间:
2015-01-20 17:01:33
阅读次数:
117
【题目】
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without
repeating letters for "abcabcbb" is "abc", which the length is...
分类:
其他好文 时间:
2015-01-20 15:42:24
阅读次数:
132
Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contains only n...
分类:
其他好文 时间:
2015-01-20 13:36:44
阅读次数:
172
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).
For example,
S = "ADOBECODEBANC"
T = "ABC"
Minimum window is "BAN...
第一次提交时runtime error ,错误串是“]”,而在code blocks (g++)下编译运行结果都是对的。后来发现时code blocks 下当栈为空时,stack.top()访问时没报错。而OJ认为是指针错误,修改再提交就OK了。 1 class Solution { 2 publi...
分类:
其他好文 时间:
2015-01-19 22:31:41
阅读次数:
115
iOS利用Application Loader打包提交到App Store时遇到错误:
The filename 未命名.ipa in the package contains an invalid character(s). The valid characters are:A-Z
,a-z,0-9,dash,period,underscore,but the name cannot s...
分类:
其他好文 时间:
2015-01-19 15:50:52
阅读次数:
156
The API: int read4(char *buf) reads 4 characters at a time from a file.The return value is the actual number of characters read. For example, it retur...
分类:
其他好文 时间:
2015-01-19 14:23:07
阅读次数:
183
方法如下: Go to Control Panel Java in the Security tab click the “Edit Site List…” button click Add button insert the URL of the website that you want acc...
分类:
移动开发 时间:
2015-01-19 12:10:41
阅读次数:
392
A string S consisting of N characters is considered to be properly nested if any of the following conditions is true:S is empty; S has the form "(U)" ...
分类:
其他好文 时间:
2015-01-19 10:40:09
阅读次数:
217