Description Description Given two strings, find the longest common subsequence (LCS). Your code should return the length of LCS. Clarification What's ...
分类:
其他好文 时间:
2019-12-21 22:27:26
阅读次数:
80
Description Description Given a string, find length of the longest repeating subsequence such that the two subsequence don’t have same string characte ...
分类:
其他好文 时间:
2019-12-21 22:26:52
阅读次数:
71
Description Description There are n coins in a line, and value of i-th coin is values[i]. Two players take turns to take a coin from one of the ends o ...
分类:
其他好文 时间:
2019-12-21 22:24:15
阅读次数:
77
Description Description There are n coins in a line. Two players take turns to take one or two coins from right side until there are no more coins lef ...
分类:
其他好文 时间:
2019-12-21 22:16:37
阅读次数:
104
Description Description Divide two integers without using multiplication, division and mod operator. If it will overflow(exceeding 32-bit signed integ ...
分类:
其他好文 时间:
2019-12-21 20:28:53
阅读次数:
82
链接: https://codeforces.com/contest/1278/problem/B 题意: You are given two integers a and b. You can perform a sequence of operations: during the first o ...
分类:
其他好文 时间:
2019-12-21 11:44:51
阅读次数:
107
Introduction Roughly speaking, there are two kinds of types in Go. Non-collections and collections. Non-collections, like Boolean, Interger, Floats, a ...
分类:
其他好文 时间:
2019-12-21 11:28:19
阅读次数:
73
time limit per test3 secondsmemory limit per test256 megabytesinput: standard inputoutput: standard output You are given a non-empty string s=s1s2…sn, ...
分类:
其他好文 时间:
2019-12-20 23:54:14
阅读次数:
181
题目链接:http://codeforces.com/contest/1272/problem/F 题意:给两个括号序列 s1,s2,要求构造一个最短的规范的括号序列 ans,且满足 s1,s2为 ans 的子序列。 设有三维dp[i][j][k],表示s1串取到i,第二个字符串取到j,k=左括号数 ...
分类:
其他好文 时间:
2019-12-20 20:43:38
阅读次数:
66
题目 中位数是有序序列最中间的那个数。如果序列的大小是偶数,则没有最中间的数;此时中位数是最中间的两个数的平均数。 例如: ,中位数是 ,中位数是 给出一个数组 nums,有一个大小为 k 的窗口从最左端滑动到最右端。窗口中有 k 个数,每次窗口移动 1 位。你的任务是找出每次窗口移动后得到的新窗口 ...
分类:
其他好文 时间:
2019-12-20 18:40:07
阅读次数:
76