从cube 到square 到O(n) 这是人类思维闪闪发光的时刻!!!!!!! 给一个 数列 negative positive zero都有 求一段连续的,最大子段和 多么!clever!多么!wise! 不是!我想的! ...
分类:
其他好文 时间:
2019-01-31 18:19:29
阅读次数:
133
算法描述: Given a positive integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. Example: 解题思路:模拟,注意边界。 ...
分类:
其他好文 时间:
2019-01-30 13:11:51
阅读次数:
107
一、分类和回归 回归分析研究的范围大致如下: 1、逻辑回归 2、决策树 运行上述代码,生成tree.dot文件,对其稍作修改 得到决策树的可视化 3、人工神经网络 二、评价指标 三、聚类分析 聚类效果评价 聚类可视化——TSNE ...
分类:
编程语言 时间:
2019-01-28 01:02:51
阅读次数:
228
https://leetcode.com/problems/spiral-matrix-ii/ Given a positive integer n, generate a square matrix filled with elements from 1 to n2 in spiral order ...
分类:
其他好文 时间:
2019-01-27 16:39:33
阅读次数:
159
传统的机器学习任务从开始到建模的一般流程是:获取数据 -> 数据预处理 -> 训练建模 -> 模型评估 -> 预测,分类。本文我们将依据传统机器学习的流程,看看在每一步流程中都有哪些常用的函数以及它们的用法是怎么样的。希望你看完这篇文章可以最为快速的开始你的学习任务。 1. 获取数据 1.1 导入s ...
分类:
编程语言 时间:
2019-01-27 10:44:33
阅读次数:
223
一、什么是Html 超文本标记语言(Hypertext Markup Language, HTML)是一种用于创建网页的标记语言。“超文本”就是指页面内可以包含图片、链接,甚至音乐、程序等非文字元素,超文本标记语言的结构包括“头”部分(英语:Head)、和“主体”部分(英语:Body),其中“头”部 ...
分类:
Web程序 时间:
2019-01-25 16:02:05
阅读次数:
205
There is a pond with a rectangular shape. The pond is divided into a grid with H rows and W columns of squares. We will denote the square at the i-th ...
分类:
其他好文 时间:
2019-01-25 15:09:20
阅读次数:
252
leetcode 69, Implement int sqrt(int x). Compute and return the square root of x, where x is guaranteed to be a non-negative integer. Since the return ...
分类:
其他好文 时间:
2019-01-25 11:43:39
阅读次数:
152
package main import ( "fmt" "sync" "time" ) // 生产数据 func producer(num ...int)(ret<-chan int) { out:=make(chan int) go func() { defer close(out) for k,... ...
分类:
其他好文 时间:
2019-01-24 00:29:23
阅读次数:
181
On a 2-dimensional grid, there are 4 types of squares: 1 represents the starting square. There is exactly one starting square. 2 represents the ending ...
分类:
其他好文 时间:
2019-01-23 01:33:49
阅读次数:
227