Given two strings S and T, return if they are equal when both are typed into empty text editors. # means a backspace character. Can you solve it in O( ...
分类:
其他好文 时间:
2018-06-09 14:35:55
阅读次数:
119
Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter at ...
分类:
其他好文 时间:
2018-06-09 00:09:17
阅读次数:
170
Codeforces Round 486 (Div. 3) B. Substrings Sort 题目连接: "http://codeforces.com/contest/988/problem/B" Description You are given n strings. Each string ...
分类:
其他好文 时间:
2018-06-08 10:36:08
阅读次数:
201
在Python中格式化字符串的方法:%占位操作符、format函数、F-strings 1、%占位操作符格式化字符串时,Python使用一个字符串作为模板。模板中有格式符,这些格式符为真实值预留位置,并说明真实数值应该呈现的格式。 Python用一个元组将多个值传递给模板,每个值对应一个格式符。 在 ...
分类:
其他好文 时间:
2018-06-06 22:15:06
阅读次数:
133
question: Write a program Frequency that reads strings from standard input and prints the number of times each string occurs, in descending order of f ...
分类:
其他好文 时间:
2018-06-06 21:37:45
阅读次数:
170
1061 Dating (20)(20 分) Sherlock Holmes received a note with some strange strings: "Let's date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm". ...
分类:
其他好文 时间:
2018-06-05 00:36:18
阅读次数:
161
set设置key对应的值为string类型的value.如:setnameHongWansetnx设置key对应的值为string类型的value。如果key已经存在,返回0,nx是notexist的意思。如:setnxnameHongWan返回0(设置不成功,因为已存在)setex设置key对应的值为string类型的value,并指定此键值对应的有效期.如:setname10HongWanse
分类:
其他好文 时间:
2018-06-03 22:19:23
阅读次数:
128
Problem description A string is a palindrome if it reads the same from the left to the right and from the right to the left. For example, the strings ...
分类:
其他好文 时间:
2018-06-03 14:31:13
阅读次数:
157
Given a group of two strings, you need to find the longest uncommon subsequence of this group of two strings. The longest uncommon subsequence is defi ...
分类:
其他好文 时间:
2018-06-03 14:20:25
阅读次数:
146
Description Write a method anagram(s,t) to decide if two strings are anagrams or not. Description Description Write a method anagram(s,t) to decide if ...
分类:
编程语言 时间:
2018-06-02 12:20:13
阅读次数:
160