码迷,mamicode.com
首页 >  
搜索关键字:characters    ( 2378个结果
CodeForces (字符串从字母a开始删除k个字母)
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
LC 3. Longest Substring Without Repeating Characters
题目描述 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
Codeforces Round #590 (Div. 3) D. Distinct Characters Queries(线段树, 位运算)
链接: 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
Codeforces Round #590 (Div. 3)
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
python3 UnicodeEncodeError错误,cx_oracle模块执行sql报错:UnicodeEncodeError: 'ascii' codec can't encode characters in position
问题描述: 写了一个执行sql的模块,引用了cx_oracle,在windows机器上完美运行,移植到Centos上就会报错, UnicodeEncodeError: 'ascii' codec can't encode characters in position 检查过程: 代码编码为utf-8 ...
分类:数据库   时间:2019-09-30 14:29:29    阅读次数:97
【LeetCode】32. Longest Valid Parentheses
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
Seq2Seq和Attention机制入门详细介绍
1.Sequence Generation 1.1.引入 在循环神经网络(RNN)入门详细介绍一文中,我们简单介绍了Seq2Seq,我们在这里展开一下 一个句子是由 characters(字) 或 words(词) 组成的,中文的词可能是由数个字构成的。 如果要用训练RNN写句子的话,以 chara ...
分类:其他好文   时间:2019-09-27 23:02:19    阅读次数:148
HDU-1238-Substrings(KMP, 暴力枚举)
链接: 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
HDU-1358-Period(KMP, 循环节)
链接: 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
leetcode 20. Valid Parentheses
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
2378条   上一页 1 ... 16 17 18 19 20 ... 238 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!