We are to write the letters of a given string S, from left to right into lines. Each line has maximum width 100 units, and if writing a letter would c ...
分类:
其他好文 时间:
2018-10-22 14:53:15
阅读次数:
137
A string S of lowercase letters is given. We want to partition this string into as many parts as possible so that each letter appears in at most one p ...
分类:
其他好文 时间:
2018-10-20 23:53:47
阅读次数:
288
http://codeforces.com/contest/1029/problem/A You are given a string tt consisting of nn lowercase Latin letters and an integer number kk. Let's define ...
分类:
其他好文 时间:
2018-10-20 21:03:27
阅读次数:
202
Design a data structure that supports the following two operations: search(word) can search a literal word or a regular expression string containing o ...
分类:
其他好文 时间:
2018-10-18 16:51:02
阅读次数:
177
Given a char array representing tasks CPU need to do. It contains capital letters A to Z where different letters represent different tasks.Tasks could ...
分类:
其他好文 时间:
2018-10-18 11:01:28
阅读次数:
216
A message containing letters from A-Z is being encoded to numbers using the following mapping: Given a non-empty string containing only digits, determ ...
分类:
其他好文 时间:
2018-10-18 10:55:17
阅读次数:
129
Remove the minimum number of invalid parentheses in order to make the input string valid. Return all possible results. Note: The input string may cont ...
分类:
其他好文 时间:
2018-10-18 10:54:41
阅读次数:
175
Bob has a dictionary with N words in it. Now there is a list of words in which the middle part of the word has continuous letters disappeared. The mid ...
分类:
其他好文 时间:
2018-10-18 01:18:22
阅读次数:
199
Given a list of sorted characters letterscontaining only lowercase letters, and given a target letter target, find the smallest element in the list th ...
分类:
其他好文 时间:
2018-10-18 01:17:00
阅读次数:
132
A string S of lowercase letters is given. We want to partition this string into as many parts as possible so that each letter appears in at most one p ...
分类:
其他好文 时间:
2018-10-17 16:52:52
阅读次数:
131