1、容器的概观与分类 所谓序列式容器,其中的元素都可序(ordered)【比如可以使用sort进行排序】,但未必有序(sorted)。C++语言本身提供了一个序列式容器array,STL另外再提供vector,list,deque,stack,queue,priority-queue 等等序列式容器 ...
分类:
其他好文 时间:
2019-12-22 12:53:43
阅读次数:
93
Description Description Given an integer matrix. Find the longest increasing continuous subsequence in this matrix and return the length of it. The lo ...
分类:
其他好文 时间:
2019-12-21 23:04:41
阅读次数:
169
Description Description Given a sequence of integers, find the longest increasing subsequence (LIS). You code should return the length of the LIS. Cla ...
分类:
其他好文 时间:
2019-12-21 22:42:03
阅读次数:
92
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
public class Solution { public int lengthOfLongestSubstring(String s) { int n = s.length(); int ans = 0; for (int i = 0; i < n; i++) for (int j = i + ...
分类:
其他好文 时间:
2019-12-19 16:17:32
阅读次数:
279
Question: Longest Common Prefix Write a function to find the longest common prefix string amongst an array of strings. If there is no common prefix, r ...
分类:
其他好文 时间:
2019-12-18 22:08:32
阅读次数:
89
好多天没有更新了,今天有空,刷一道。 算法第5题 给定一个字符串 s,找到 s 中最长的回文子串。你可以假设 s 的最大长度为 1000。 示例 1: 输入: "babad"输出: "bab"注意: "aba" 也是一个有效答案。示例 2: 输入: "cbbd"输出: "bb" 来源:力扣(Leet ...
分类:
其他好文 时间:
2019-12-18 14:57:38
阅读次数:
65
PKU blog about this paper Basic knowledge: 1. what is time-varying graphs? time-varying graph VS static graph. a time-varying graph - an ordered seque ...
分类:
其他好文 时间:
2019-12-16 17:47:55
阅读次数:
92
最近刷题进展尚可,但是形式变化了下,因为感觉眼睛会看瞎,所以好多写在纸上。本来想放到文件夹存储起来,但是太容易丢了,明天整理下,赶紧拍上来把 今晚是周末,这一周都在不停的学学学,我想下周怕是不能睡午觉了,中午回去床对我的诱惑太大了,我得想办法,一进门先把被褥收起来,再放个欢快的歌,中午少吃点,加油小 ...
分类:
其他好文 时间:
2019-12-16 09:32:01
阅读次数:
87