摘要: 题目: 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 formed fr 阅读全文
posted @ 2017-05-20 22:11 Vincent丶丶 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 题目: Given two strings, find the longest common subsequence (LCS). Your code should return the length of LCS. Given two strings, find the longest commo 阅读全文
posted @ 2017-05-20 21:37 Vincent丶丶 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 题目: Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.) You h 阅读全文
posted @ 2017-05-20 21:09 Vincent丶丶 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a sequence of integers, find the longest increasing subsequence (LIS). You code should return the length of the LIS. Given a sequence of int 阅读全文
posted @ 2017-05-20 20:40 Vincent丶丶 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 函数签名的概念 函数签名主要包括1、函数名;2、参数列表(参数的个数、数据类型和顺序);但是注意,C++官方定义中函数签名不包括返回值!! 1、重载 函数重载是指在同一作用域内,可以有一组具有相同函数名,不同参数列表的函数,这组函数被称为重载函数,与函数返回类型无关。重载要求参数列表必须不同,比如参 阅读全文
posted @ 2017-05-20 11:11 Vincent丶丶 阅读(184) 评论(0) 推荐(0) 编辑