摘要: 转载自:http://freemind.pluskid.org/machine-learning/sparsity-and-some-basics-of-l1-regularization/#ed61992b37932e208ae114be75e42a3e6d... 阅读全文
posted @ 2018-04-06 21:04 xzhws 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 转载自:这位博主~ 题目: N位同学站成一排,音乐老师要请其中的(N-K)位同学出列,使得剩下的K位同学不交换位置就能排成合唱队形。合唱队形是指这样的一种队形:设K位同学从左到右依次编号为1, 2, …, K,他们的身高分别为T1, T2, …, TK,则... 阅读全文
posted @ 2018-04-06 10:45 xzhws 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a non-empty string check if it can be constructed by taking a substring of it and appending multiple copies of the substr... 阅读全文
posted @ 2018-04-05 20:54 xzhws 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 题目描述: 输入一个字符串,以回车结束(字符串长度# include# includeusing namespace std;int main(){ char input[30]; char str1[30]; char str2[30]; gets(... 阅读全文
posted @ 2018-04-05 20:15 xzhws 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 题目描述: 求任意两个不同进制非负整数的转换(2进制~16进制),所给整数在long所能表达的不同进制的表示符号为(0,1,...,9,a,b,...,f)或者(0,1,...,9,A,B,...,F)。 输入: 输入只有一行,包含三个整数a,n,b。a表示... 阅读全文
posted @ 2018-04-05 11:09 xzhws 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 题目描述: The doggie found a bone in an ancient maze, which fascinated him a lot. However, when he picked it up, the maze began to sha... 阅读全文
posted @ 2018-04-03 10:14 xzhws 阅读(50) 评论(0) 推荐(0) 编辑
摘要: 题目: A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum o... 阅读全文
posted @ 2018-04-01 17:12 xzhws 阅读(54) 评论(0) 推荐(0) 编辑
摘要: Problem Description Given a set of sticks of various lengths, is it possible to join them end-to-end to form a square? Input The ... 阅读全文
posted @ 2018-04-01 17:03 xzhws 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 题目描述 玛雅人有一种密码,如果字符串中出现连续的2012四个数字就能解开密码。给一个长度为N的字符串,(2=# include# includeusing namespace std;# define N 13struct str{ char ch[N]; ... 阅读全文
posted @ 2018-03-31 08:52 xzhws 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 转载自:这位博主 从感知器谈起 对于典型的二分类问题,线性分类器的目的就是找一个超平面把正负两类分开。对于这个超平面,我们可以用下面的式子来表示, ωTx+b=0ωTx+b=0 感知器是最简单的一种线性分类器。用f(x)表示分类函数,感知器可以如下来表示... 阅读全文
posted @ 2018-03-28 23:09 xzhws 阅读(146) 评论(0) 推荐(0) 编辑