树 基本概念 1.最多一个先驱 但可能有多个后继 表示具有层次的分支关系 2.Siblings(兄弟): nodes share the same parent Degree(树的扇出) of a tree: the maximum number of its node. 3.深度为最大层数 第i层 ...
分类:
其他好文 时间:
2019-12-29 22:14:09
阅读次数:
85
1007 Maximum Subsequence Sum (25分) Given a sequence of K integers { N?1??, N?2??, ..., N?K?? }. A continuous subsequence is defined to be { N?i??, N?i ...
分类:
其他好文 时间:
2019-12-26 17:53:37
阅读次数:
90
链接:https://leetcode-cn.com/problems/longest-common-subsequence 给定两个字符串 text1 和 text2,返回这两个字符串的最长公共子序列。 一个字符串的 子序列 是指这样一个新的字符串:它是由原字符串在不改变字符的相对顺序的情况下删除 ...
分类:
其他好文 时间:
2019-12-24 13:28:39
阅读次数:
57
static final int DEFAULT_INITIAL_CAPACITY = 1 << 4; // 16 默认初始容量 16 static final int MAXIMUM_CAPACITY = 1 << 30; //最大容量 2的30次方 static final float DEFA ...
分类:
其他好文 时间:
2019-12-22 18:44:23
阅读次数:
97
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 Find the contiguous subarray within an array (containing at least one number) which has the largest product. Description Description Find ...
分类:
其他好文 时间:
2019-12-21 22:54:06
阅读次数:
97
Description Description Given two strings S and T. Count the number of distinct subsequences of S which equals T. A subsequence of a string is a new s ...
分类:
其他好文 时间:
2019-12-21 22:46:20
阅读次数:
101
Given a sequence of K integers { N?1??, N?2??, ..., N?K?? }. A continuous subsequence is defined to be { N?i??, N?i+1??, ..., N?j?? } where 1. The Max ...
分类:
其他好文 时间:
2019-12-21 22:45:36
阅读次数:
72
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