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-03-06 17:18:00
阅读次数:
155
原题链接在这里:https://leetcode.com/problems/remove-duplicate-letters/ 题目: Given a string which contains only lowercase letters, remove duplicate letters so
分类:
其他好文 时间:
2016-03-04 13:10:37
阅读次数:
149
string.ascii_lowercase ='abcdefghijklmnopqrstuvwxyz' string.ascii_uppercase ='ABCDEFGHIJKLMNOPQRSTUVWXYZ' string.ascii_letters ='abcdefghijklmnopqrstu
分类:
编程语言 时间:
2016-02-26 22:07:33
阅读次数:
226
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-02-25 01:34:28
阅读次数:
123
题意:一个n*m的矩阵,要么是 . 要么是 z ,问可以形成几个大z 分析:(直接奉上官方题解,我感觉说的实在是太好了) Let's precalculate the values zlij,?zrij,?zldij — the maximal number of letters 'z' to th
分类:
编程语言 时间:
2016-02-24 22:38:57
阅读次数:
542
Compare two strings A and B, determine whether A contains all of the characters in B. The characters in string A and B are all Upper Case letters. Exa
分类:
其他好文 时间:
2016-02-24 13:54:37
阅读次数:
179
Problem Description Now you are back,and have a task to do:Given you a string s consist of lower-case English letters only,denote f(s) as the number o
分类:
其他好文 时间:
2016-02-19 20:32:48
阅读次数:
233
Description: 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.
分类:
其他好文 时间:
2016-02-17 23:47:57
阅读次数:
235
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-02-17 12:42:22
阅读次数:
150
python生成随机密码串python的random模块可以生成随机数,主要用这个生成随机密码。string模块中的3个函数:string.letters,string.printable,string.printable>>>importstring
>>>string.letters
‘abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ‘..
分类:
编程语言 时间:
2016-02-15 16:43:50
阅读次数:
186