Every day a Leetcode
题目来源:209. 长度最小的子数组
解法1:暴力
暴力法是最直观的方法。
初始化子数组的最小长度为无穷大,枚举数组 nums 中的每个下标作为子数组的开始下标,对于每个开始下标 i,需要找到大于或…
来源:《斯坦福数据挖掘教程第三版》对应的公开英文书和PPT
It is therefore a pleasant surprise to learn of a family of techniques called locality-sensitive hashing, or LSH, that allows us to focus on pairs that are likely to be similar, without hav…
K-nearest neighbor
知识树 怎么区分红豆绿豆?
How to distinguish red beans and green beans? 之前我们构造了一个超平面来解决这个问题,既然超平面可以切分,是不是红豆之间和绿豆之间有着某种关联。即:物以类聚。
如果一个…