一、题目 二、解题思路 三、解题代码 一、题目 There are N children standing in a line. Each child is assigned a rating value. You are giving candies to these children subjected to the following ...
一、题目 二、解题思路 三、解题代码 一、题目 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...
六、多类分类问题 6.1 one vs rest 6.2 one vs one 6.3 many vs many 六、多类分类问题 某些算法原生的支持多分类,如:决策树、最近邻算法等。但是有些算法只能求解二分类问题,如:支持向量机。 对于只能求解二分类问题的算法,一旦遇到问题是多类别的,那么可以将多分类问题拆解成二分类任务求解。 即: ...