You are given a string s consisting of n lowercase Latin letters. Polycarp wants to remove exactly k characters (k≤n) from the string s. Polycarp uses ...
分类:
其他好文 时间:
2019-10-03 20:23:26
阅读次数:
94
题目描述 Given a string, find the length of the longest substring without repeating characters. Example 1: Input: "abcabcbb" Output: 3 Explanation: The an ...
分类:
其他好文 时间:
2019-10-03 17:47:38
阅读次数:
75
链接: https://codeforces.com/contest/1234/problem/D 题意: You are given a string s consisting of lowercase Latin letters and q queries for this string. Re ...
分类:
其他好文 时间:
2019-10-03 00:48:22
阅读次数:
198
D. Distinct Characters Queries Description You are given a string ss consisting of lowercase Latin letters and qq queries for this string. Recall that ...
分类:
其他好文 时间:
2019-10-02 14:37:51
阅读次数:
112
问题描述: 写了一个执行sql的模块,引用了cx_oracle,在windows机器上完美运行,移植到Centos上就会报错, UnicodeEncodeError: 'ascii' codec can't encode characters in position 检查过程: 代码编码为utf-8 ...
分类:
数据库 时间:
2019-09-30 14:29:29
阅读次数:
97
Difficulty: Hard More:【目录】LeetCode Java实现 Description Given a string containing just the characters '(' and ')', find the length of the longest valid ...
分类:
其他好文 时间:
2019-09-28 23:13:49
阅读次数:
116
1.Sequence Generation 1.1.引入 在循环神经网络(RNN)入门详细介绍一文中,我们简单介绍了Seq2Seq,我们在这里展开一下 一个句子是由 characters(字) 或 words(词) 组成的,中文的词可能是由数个字构成的。 如果要用训练RNN写句子的话,以 chara ...
分类:
其他好文 时间:
2019-09-27 23:02:19
阅读次数:
148
链接: https://vjudge.net/problem/HDU 1238 题意: You are given a number of case sensitive strings of alphabetic characters, find the largest string X, such ...
分类:
其他好文 时间:
2019-09-26 21:42:17
阅读次数:
94
链接: https://vjudge.net/problem/HDU 1358 author=0 题意: For each prefix of a given string S with N characters (each character has an ASCII code between 9 ...
分类:
其他好文 时间:
2019-09-24 17:14:54
阅读次数:
93
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: No ...
分类:
其他好文 时间:
2019-09-20 00:04:55
阅读次数:
79