题目意思是给你一个read4的函数,实现一个readn的函数。一开始题目一直没搞懂,原来,read4(buf) 是指,读4个字符存到buf,或者读剩下的不足四个的字符,返回的数字是存到buf里的字符数。没有买书,只能网上看看别人分享的代码:// Forward declaration of the ...
分类:
其他好文 时间:
2014-12-24 23:59:54
阅读次数:
439
Longest Substring Without Repeating CharactersGiven a string, find the length of the longest substring without repeating characters. For example, the ...
分类:
其他好文 时间:
2014-12-23 15:05:53
阅读次数:
174
这个题目我采用了两种方案,第一种方案代码行数相对较少,但效率稍低,第二种方案参照网上的进行改进代码行数相对多些,但效率稍高。
题目:
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
The brack...
分类:
其他好文 时间:
2014-12-21 20:43:27
阅读次数:
202
1 of 5. What is a capability of Advanced Setup Search? Choose 2 answers A. Enter search criteria using wildcard characters, such as an asterisk...
Valid ParenthesesGiven a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must clos...
分类:
其他好文 时间:
2014-12-20 12:50:17
阅读次数:
163
You have devised a new encryption technique which encodes a message by inserting between its characters randomly generated strings in a clever way. Be...
分类:
其他好文 时间:
2014-12-19 23:22:54
阅读次数:
228
Implement wildcard pattern matching with support for'?'and'*'.'?' Matches any single character.'*' Matches any sequence of characters (including the e...
分类:
其他好文 时间:
2014-12-19 00:22:53
阅读次数:
185
- (NSString *)encodeToPercentEscapeString: (NSString *) input
{
// Encode all the reserved characters, per RFC 3986
// ()
NSString *outputStr = (NSString *)
CFURLCreateStrin...
分类:
移动开发 时间:
2014-12-18 15:16:52
阅读次数:
147
Longest Valid ParenthesesGiven a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substr...
分类:
其他好文 时间:
2014-12-18 11:48:19
阅读次数:
158
Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", the longest...
分类:
其他好文 时间:
2014-12-17 17:55:07
阅读次数:
160