简介 推荐系统,是当今互联网背后的无名英雄。 我们在某宝首页看见的商品,某条上读到的新闻,某度上的搜索列表,甚至在各种地方看见的广告,都有赖于推荐算法和系统. 本片文章讲述有哪些常用的推荐算法, 协同过滤推荐算法的原理, 以及如何使用协同过滤算法设计一个商品推荐毕业设计系统. 常见推荐算法 协同过滤 ...
分类:
其他好文 时间:
2020-11-04 17:47:44
阅读次数:
16
两根指针,英文为two pointers ,所以又被称为双P算法。 同向双指针问题 1.window sum问题 例给定数组[1, 2, 7, 8, 5],给定一个长度为k的窗口,求此窗口内的数据元素的和。比如1 + 2 + 7 = 10, 2 + 7 + 8 = 17, 7 + 8 + 5 = 2 ...
分类:
其他好文 时间:
2020-11-02 09:54:07
阅读次数:
33
package LeetCode_153 /** * 153. Find Minimum in Rotated Sorted Array https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/ Suppose an ar ...
分类:
其他好文 时间:
2020-11-01 10:11:19
阅读次数:
19
oracle常用经典SQL查询 常用SQL查询: 1、查看表空间的名称及大小 select t.tablespace_name, round(sum(bytes/(1024*1024)),0) ts_size from dba_tablespaces t, dba_data_files d wher ...
分类:
数据库 时间:
2020-10-30 13:16:35
阅读次数:
36
题目 题目链接:https://codeforces.com/problemset/problem/468/B 给出 \(n\) 个各不相同的数字,将它们分别放入 \(A\) 和 \(B\) 两个集合中,使它们满足: 若数字 \(x\) 在集合 \(A\) 中,那么数字 \(a-x\) 也在集合 \ ...
分类:
其他好文 时间:
2020-10-30 12:08:18
阅读次数:
14
You are given a sorted unique integer array nums. Return the smallest sorted list of ranges that cover all the numbers in the array exactly. That is, ...
分类:
其他好文 时间:
2020-10-30 11:55:20
阅读次数:
20
本文来自作者 "臣不贰" 投稿。 CSDN:https://blog.csdn.net/NOT_TWO_CHEN/article/details/109230267 简书:https://www.jianshu.com/p/a24a9ff323c9 一. 开发准备 1. 开发工具 IntelliJ ...
分类:
编程语言 时间:
2020-10-29 09:54:54
阅读次数:
23
You are given a perfect binary tree where all leaves are on the same level, and every parent has two children. The binary tree has the following defin ...
分类:
其他好文 时间:
2020-10-27 11:41:41
阅读次数:
23
题目 Re-see 特别喜欢柠檬。 Re-see 一共采了 n 个柠檬。一开始每个柠檬自成一堆。之后她又做了 Q 次操 作 1 x y:Re-see 觉得不够酸爽,决定把第 x 个柠檬和第 y 个柠檬所在的柠檬 堆合并 特别的,如果 x,y 本来就在一堆里,那么什么也不做 2 a b:Re-see ...
分类:
其他好文 时间:
2020-10-26 10:55:31
阅读次数:
17