Discription Levko loves strings of length n, consisting of lowercase English letters, very much. He has one such string s. For each string t of length ...
分类:
其他好文 时间:
2018-05-03 14:27:59
阅读次数:
185
[抄题]: A sentence S is given, composed of words separated by spaces. Each word consists of lowercase and uppercase letters only. We would like to conve ...
分类:
其他好文 时间:
2018-04-30 23:31:31
阅读次数:
695
[抄题]: Given a list of sorted characters letters containing only lowercase letters, and given a target letter target, find the smallest element in the ...
分类:
其他好文 时间:
2018-04-28 23:50:23
阅读次数:
269
密码生成器 -随机密码 -定向生成 -加盐 用一定的算法,会存在破解的可能,加盐混淆 -直接复制 不需要显示在终端,便于保护,直接粘贴过去 简单脚本随机生成 base64 加密 知识点: base64: 是一种加密算法,支持多种加密,解密。 所需要的参数 为bytes类型(s.encode('utf ...
分类:
其他好文 时间:
2018-04-26 23:32:19
阅读次数:
211
[抄题]: Given a string which consists of lowercase or uppercase letters, find the length of the longest palindromes that can be built with those letters ...
分类:
其他好文 时间:
2018-04-25 22:09:20
阅读次数:
159
Given an expression such as expression = "e + 8 - a + 5" and an evaluation map such as {"e": 1}(given in terms of evalvars = ["e"] and evalints = [1]) ...
分类:
其他好文 时间:
2018-04-25 00:22:39
阅读次数:
195
Implementing the Tropical Golf Game Task You are to implement a golf game program as outlined in the following description. Use what you have created ...
分类:
编程语言 时间:
2018-04-24 21:54:27
阅读次数:
335
#!/usr/bin/python3 # -*- coding: utf-8 -*- import random,string src = string.ascii_letters + string.digits data = random.sample(src,0) data.extend(ran... ...
分类:
编程语言 时间:
2018-04-24 20:21:23
阅读次数:
188
题目链接 Dhinwaji is an acclaimed poet and likes to play with words and letters. He has bought some stickers where each sticker has a lower case english l ...
分类:
其他好文 时间:
2018-04-23 13:50:46
阅读次数:
221
题目描述: Given a string s and a non-empty string p, find all the start indices of p's anagrams in s. Strings consists of lowercase English letters only a ...
分类:
其他好文 时间:
2018-04-22 12:47:36
阅读次数:
159