在控制台输出的话Name = "测试数据",io:format("~ts~n",[Name]).如果是和客户端通信,假如都是utf8编码服务器获取的时候,仍然可以直接通过binary_to_list解码发给客户端的数据的时候,需要用unicode:characters_to_binary("猪头")...
分类:
其他好文 时间:
2015-01-28 19:41:39
阅读次数:
454
问题描述:
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...
Total Accepted: 909
Total Submissions: 4757
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, i...
分类:
其他好文 时间:
2015-01-28 09:42:15
阅读次数:
171
Total Accepted: 1167
Total Submissions: 3961
Given a string, find the length of the longest substring T that contains at most 2 distinct characters.
For example,Given s = “eceba”,
T is...
分类:
其他好文 时间:
2015-01-28 06:15:59
阅读次数:
149
Longest Valid Parentheses.
分类:
其他好文 时间:
2015-01-28 00:43:26
阅读次数:
202
题目链接:Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters...
分类:
其他好文 时间:
2015-01-27 23:33:44
阅读次数:
176
描述:
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-27 20:21:40
阅读次数:
149
Android平台上面可以通过好几种方式得到Context :
1、通过Activity的this
2、getApplicationContext()
3、getParent
这三种各自得到的是不同的,正常的话应该建议使用Activity.this.这个是最不容易出现问题的使用方法, 如果使用了第二种或者第三种的时候,将在Activity关闭掉的时候可能会出现异常 还是老老实实的使用Act...
分类:
移动开发 时间:
2015-01-27 18:24:11
阅读次数:
161
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.
For example,
"A man, a plan, a canal: Panama" is a palindrome.
"race a car" is not a p...
分类:
其他好文 时间:
2015-01-27 18:23:55
阅读次数:
182
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 3. Fo...
分类:
其他好文 时间:
2015-01-27 09:30:15
阅读次数:
169