Given a string which contains only letters. Sort it by lower case first and upper case second. Example For "abAcD", a reasonable answer is "acbAD" 与将负 ...
分类:
其他好文 时间:
2016-06-03 08:44:29
阅读次数:
146
字符串方法 string.digits:包含数字0-9的字符串 string.letters:包含所有字母(大写或小写)的字符串 string.lowercase:包含所有小写字母的字符串 string.printable: 包含所有可打印字符的字符串 string.punctuation:包含所有 ...
分类:
编程语言 时间:
2016-05-30 23:16:49
阅读次数:
178
题目链接:https://leetcode.com/problems/decode-ways/
题目:
A message containing letters from A-Z is being encoded to numbers using the following
mapping:
'A' -> 1
'B' -> 2
...
'Z' -> 26
Given an...
分类:
其他好文 时间:
2016-05-30 15:12:14
阅读次数:
144
Implement a trie with insert, search, and startsWith methods. Note:You may assume that all inputs are consist of lowercase letters a-z. Subscribe to s ...
分类:
其他好文 时间:
2016-05-30 08:48:16
阅读次数:
148
Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telepho ...
分类:
其他好文 时间:
2016-05-27 20:20:37
阅读次数:
143
Problem Description
In millions of newspapers across the United States there is a word game called Jumble. The object of this game is to solve a riddle, but in order to find the letters that appear in...
分类:
其他好文 时间:
2016-05-27 16:51:26
阅读次数:
153
Decode Ways
Total Accepted: 70502 Total
Submissions: 399086 Difficulty: Medium
A message containing letters from A-Z is
being encoded to numbers using the following mapping...
分类:
其他好文 时间:
2016-05-27 11:31:31
阅读次数:
179
Description Polycarp has quite recently learned about email aliases. Of course, he used to suspect that the case of the letters doesn't matter in emai ...
分类:
其他好文 时间:
2016-05-22 16:50:19
阅读次数:
183
Description You are to write a program that has to generate all possible words from a given set of letters. Example: Given the word "abc", your progra ...
分类:
其他好文 时间:
2016-05-22 16:35:19
阅读次数:
180
http://poj.org/problem?id=1154 ...
分类:
其他好文 时间:
2016-05-21 15:47:07
阅读次数:
144