Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
题目字符大小写排序给定一个只包含字母的字符串,按照先小写字母后大写字母的顺序进行排序。您在真实的面试中是否遇到过这个题?Yes样例给出"abAcD",一个可能的答案为"acbAD"注意小写字母或者大写字母他们之间不一定要保持在原始字符串中的相对位置。挑战在原地扫描一遍完成解题这个题目很简单,前面刚做...
分类:
编程语言 时间:
2016-01-05 20:48:03
阅读次数:
258
题目:A message containing letters from A-Z is being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an encoded message ...
分类:
其他好文 时间:
2016-01-04 11:30:07
阅读次数:
147
Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. You may assum...
分类:
其他好文 时间:
2016-01-02 08:42:49
阅读次数:
341
Given a string which contains only lowercase letters, remove duplicate letters so that every letter appear once and only once. You must make sure your...
分类:
其他好文 时间:
2015-12-29 14:27:12
阅读次数:
3977
题目:Given a string which contains only lowercase letters, remove duplicate letters so that every letter appear once and only once. You must make sure y...
分类:
其他好文 时间:
2015-12-28 07:57:21
阅读次数:
520
There is a new alien language which uses the latin alphabet. However, the order among letters are unknown to you. You receive a list of words from the...
分类:
其他好文 时间:
2015-12-27 13:26:09
阅读次数:
303
题目:Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters...
分类:
其他好文 时间:
2015-12-27 11:58:41
阅读次数:
126
Remove Duplicate LettersGiven a string which contains only lowercase letters, remove duplicate letters so that every letter appear once and only once....
分类:
编程语言 时间:
2015-12-26 23:33:11
阅读次数:
248
Given a string which contains only lowercase letters, remove duplicate letters so that every letter appear once and only once. You must make sure your...
分类:
其他好文 时间:
2015-12-24 11:56:41
阅读次数:
117