RmbUtils={ convertCurrency:function(currencyDigits) { // Constants: var MAXIMUM_NUMBER = 99999999999.99; // Predefine the radix characters and currenc ...
分类:
其他好文 时间:
2019-04-09 16:39:53
阅读次数:
120
E. Maximum Matching time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output E. Maximum Matching ...
分类:
其他好文 时间:
2019-04-09 16:32:02
阅读次数:
101
题目: 1.binary tree preorder traversal 2.maximum depth of binary tree 3.balanced binary tree 4.binary tree maximum path sum 5.lowest common ancestor 6.b ...
分类:
其他好文 时间:
2019-04-06 19:05:08
阅读次数:
101
Given an unsorted array of integers, find the length of longest increasing subsequence. Example: Note: There may be more than one LIS combination, it ...
分类:
其他好文 时间:
2019-04-06 12:32:36
阅读次数:
98
"CF1142E/1143B Lynyrd Skynyrd" 开始读错题了,以为是连续的一段,敲完后才发现是 $subsequence$ ... 考虑对于 $a$ 中的每个 $a_i$ 找到它在排列 $p$ 中的下一个元素的最左位置 $j$ ,从 $i$ 到 $j$ 连一条边,这样就形成了一个森林. ...
分类:
其他好文 时间:
2019-04-06 09:35:16
阅读次数:
100
Given an array A of positive integers, A[i] represents the value of the i-th sightseeing spot, and two sightseeing spots i and j have distance j - i b ...
分类:
其他好文 时间:
2019-04-04 09:47:50
阅读次数:
176
本题大意:和LIS一样 本题思路:用dp[ i ]保存前 i 个数中的最长递增序列的长度,则可以得出状态转移方程dp[ i ] = max(dp[ j ] + 1)(j < i) 参考代码: 1 #include <iostream> 2 #include <cstring> 3 #include ...
分类:
其他好文 时间:
2019-04-03 14:06:06
阅读次数:
152
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1, ...
分类:
Web程序 时间:
2019-04-02 18:37:15
阅读次数:
1276
题目要求 Given a group of two strings, you need to find the longest uncommon subsequence of this group of two strings. The longest uncommon subsequence is ...
分类:
其他好文 时间:
2019-04-01 11:50:44
阅读次数:
137
链接:https://vjudge.net/problem/HDU-1159#author=0 题意: 最长公共子序列,LCS 思路: LCS 代码: ...
分类:
其他好文 时间:
2019-03-31 09:35:45
阅读次数:
156