标签:动态规划 题目描述: Given a string S and a string T, count the number of distinct subsequences of T in S. A subsequence of a string is a new string which is ...
分类:
其他好文 时间:
2016-09-09 06:31:11
阅读次数:
140
最优化问题 常规动态规划 SOJ1162 I-Keyboard SOJ1685 Chopsticks SOJ1679 Gangsters SOJ2096 Maximum Submatrix SOJ2111 littleken bg SOJ2142 Cow Exhibition SOJ2505 The ...
分类:
其他好文 时间:
2016-09-09 06:30:00
阅读次数:
266
LCS(Longest Common Subsequence) 就是求两个字符串最长公共子串的问题。引入: LCS(Longest Common Subsequence) 就是求两个字符串最长公共子串的问题。 比如: String str1 = new String("adbccadebbca"); ...
分类:
其他好文 时间:
2016-09-08 19:54:15
阅读次数:
149
Longest Ordered Subsequence Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 47465 Accepted: 21120 Description A numeric sequence of ai is o ...
分类:
其他好文 时间:
2016-09-08 18:27:41
阅读次数:
123
<!DOCTYPE html><html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1, ...
分类:
移动开发 时间:
2016-09-08 11:16:29
阅读次数:
729
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of Sis 1000, and there exists one unique longest ...
分类:
其他好文 时间:
2016-09-07 22:55:39
阅读次数:
165
标签:动态规划 问题描述: Given n items with size Ai and value Vi, and a backpack with size m. What's the maximum value can you put into the backpack? 解题思路: 又是一道恶 ...
分类:
其他好文 时间:
2016-09-07 01:40:05
阅读次数:
211
1.近日处理一个由于standby磁盘IO性能较差,导致Primary的性能受到影响。主库主要是等待"logfileswitchcompletion",通过ASHdump分析,最终发现实际等待事件是"LGWR-LNSwaitonchannel”.这个事件基本上可以将问题归结到网络性能和standby的IO性能,而客户的传输模式是“MAXIMUM..
分类:
数据库 时间:
2016-09-06 01:27:28
阅读次数:
324
239. Sliding Window Maximum 239. Sliding Window Maximum Given an array nums, there is a sliding window of size k which is moving from the very left of ...
尽量抽空刷LeetCode,持续更新 刷题记录在github上面,https://github.com/Zering/LeetCode 2016-09-05 300. Longest Increasing Subsequence 问题:https://leetcode.com/problems/lo ...
分类:
其他好文 时间:
2016-09-05 12:20:18
阅读次数:
119