码迷,mamicode.com
首页 >  
搜索关键字:problems    ( 6275个结果
@codeforces - 1276F@ Asterisk Substrings
给定一个包含 n 个小写字母的字符串 s,用 s 生成 n 个串 t1...n,其中 ti 等于字符串 s 将第 i 个字符替换为 * 得到的字符串。 特别注意:这里的 * 只是一个字符,并不具有其他含义(如通配符)。 求有多少字符串,在 {s, t1, t2, ..., tn} 中作为至少一个... ...
分类:其他好文   时间:2019-12-24 20:41:25    阅读次数:96
LeetCode 1143 最长公共子序列
链接:https://leetcode-cn.com/problems/longest-common-subsequence 给定两个字符串 text1 和 text2,返回这两个字符串的最长公共子序列。 一个字符串的 子序列 是指这样一个新的字符串:它是由原字符串在不改变字符的相对顺序的情况下删除 ...
分类:其他好文   时间:2019-12-24 13:28:39    阅读次数:57
LeetCode 1025. Divisor Game
题目链接:https://leetcode.com/problems/divisor-game/ 题意:Alice和Bob玩一个游戏,Alice先开始。最初,黑板上有一个数字N。每一轮,选手首先需要选择一个数x(0<x<N且N%x==0),并将黑板上的数字N替换成N-x。如果哪个选手无法继续操作,则 ...
分类:其他好文   时间:2019-12-23 17:17:06    阅读次数:74
arts lettcode 题目
编写一个函数来查找字符串数组中的最长公共前缀。 如果不存在公共前缀,返回空字符串 ""。 示例 1: 输入: ["flower","flow","flight"]输出: "fl"示例 2: 输入: ["dog","racecar","car"]输出: ""解释: 输入不存在公共前缀。说明: 所有输入 ...
分类:其他好文   时间:2019-12-23 00:10:40    阅读次数:107
LeetCode 641. Design Circular Deque
原题链接在这里:https://leetcode.com/problems/design-circular-deque/ 题目: Design your implementation of the circular double-ended queue (deque). Your implement ...
分类:其他好文   时间:2019-12-22 13:03:25    阅读次数:81
LeetCode 622. Design Circular Queue
原题链接在这里:https://leetcode.com/problems/design-circular-queue/ 题目: Design your implementation of the circular queue. The circular queue is a linear data ...
分类:其他好文   时间:2019-12-22 12:57:22    阅读次数:79
LeetCode 724. Find Pivot Index
原题链接在这里:https://leetcode.com/problems/find-pivot-index/ 题目: Given an array of integers nums, write a method that returns the "pivot" index of this arr ...
分类:其他好文   时间:2019-12-22 11:11:09    阅读次数:85
LeetCode 1108. Defanging an IP Address
原题链接在这里:https://leetcode.com/problems/defanging-an-ip-address/ 题目: Given a valid (IPv4) IP address, return a defanged version of that IP address. A de ...
分类:其他好文   时间:2019-12-22 11:02:53    阅读次数:71
LeetCode 1021. Remove Outermost Parentheses
原题链接在这里:https://leetcode.com/problems/remove-outermost-parentheses/ 题目: A valid parentheses string is either empty (""), "(" + A + ")", or A + B, wher ...
分类:其他好文   时间:2019-12-22 10:58:31    阅读次数:90
HDU1619 Unidirectional TSP
Problem Description Problems that require minimum paths through some domain appear in many different areas of computer science. For example, one of th ...
分类:其他好文   时间:2019-12-21 20:35:46    阅读次数:66
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!