码迷,mamicode.com
首页 >  
搜索关键字:valid characters    ( 4838个结果
erlang里面中文相关处理
在控制台输出的话Name = "测试数据",io:format("~ts~n",[Name]).如果是和客户端通信,假如都是utf8编码服务器获取的时候,仍然可以直接通过binary_to_list解码发给客户端的数据的时候,需要用unicode:characters_to_binary("猪头")...
分类:其他好文   时间:2015-01-28 19:41:39    阅读次数:454
[leetcode] 76 Minimum Window Substring
问题描述: 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...
分类:Windows程序   时间:2015-01-28 17:59:12    阅读次数:186
leetcode 160: Read N Characters Given Read4 II - Call multiple times
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
leetcode 159: Longest Substring with At Most Two Distinct Characters
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
[leetcode]Longest Valid Parentheses
Longest Valid Parentheses.
分类:其他好文   时间:2015-01-28 00:43:26    阅读次数:202
LeetCode --- 3. Longest Substring Without Repeating Characters
题目链接: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
leetcode_3_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 for "abcabcbb" is "abc", which the length is ...
分类:其他好文   时间:2015-01-27 20:21:40    阅读次数:149
关于Android平台上面is not valid; is your activity running?
Android平台上面可以通过好几种方式得到Context : 1、通过Activity的this 2、getApplicationContext() 3、getParent 这三种各自得到的是不同的,正常的话应该建议使用Activity.this.这个是最不容易出现问题的使用方法, 如果使用了第二种或者第三种的时候,将在Activity关闭掉的时候可能会出现异常 还是老老实实的使用Act...
分类:移动开发   时间:2015-01-27 18:24:11    阅读次数:161
LeetCode125——Valid Palindrome
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
leetcode-----------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 for "abcabcbb" is "abc", which the length is 3. Fo...
分类:其他好文   时间:2015-01-27 09:30:15    阅读次数:169
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!