![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法
文章平均质量分 79
xuweiling_
这个作者很懒,什么都没留下…
展开
-
String to Integer (atoi)
Implement atoi to convert a string to an integer.原创 2017-10-10 18:24:23 · 202 阅读 · 0 评论 -
[NK]二维数组中的查找
二维数组中的查找 题目描述 在一个二维数组中,每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。请完成一个函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数。 class Solution { public: bool Find(int target, vector<vector<int> > array) {...原创 2018-07-15 10:10:59 · 108 阅读 · 0 评论 -
[NK]从尾到头打印链表
从尾到头打印链表这里写链接内容 题目描述 输入一个链表,按链表值从尾到头的顺序返回一个ArrayList。 #include "stdafx.h" #include <iostream> using namespace std; #include <vector> struct ListNode { int val; struct...原创 2018-07-16 10:24:02 · 94 阅读 · 0 评论 -
[DM]推荐算法
推荐算法介绍 推荐系统在各种系统中广泛使用,推荐算法则是其中最核心的技术点,为推荐系统选择正确的推荐算法是非常重要的决定。目前为止,已经有许多推荐算法可供选择,但为你需要解决的特定问题选择一种特定的算法仍然很困难。每一种推荐算法都有其优点和缺点,当然也有其限制条件,在作出决定之前,你必须要一一考量。在实践中,你可能会测试几种算法,以发现哪一种最适合你的用户,测试中你也会直观地发现它们是什么以及它...原创 2018-06-12 11:22:34 · 2430 阅读 · 1 评论 -
[DM]集成学习
1、集成学习介绍 集成学习(ensemble learning)可以说是现在非常火爆的机器学习方法了。它本身不是一个单独的机器学习算法,而是通过构建并结合多个机器学习器来完成学习任务。也就是我们常说的“博采众长”(集成学习对训练集数据,训练若干个个体学习器,通过一定的结合策略,就可以最终形成一个强学习器,以达到博采众长的目的)。集成学习可以用于分类问题集成,回归问题集成,特征选取集成,异常点检测...原创 2018-06-11 21:54:27 · 484 阅读 · 2 评论 -
Merge Two Sorted Lists
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.原创 2017-11-01 11:06:07 · 142 阅读 · 0 评论 -
Valid Parentheses
Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. The brackets must close in the correct order, "()" and "()[]{}" are all valid but "(]" and "([)]" are not.原创 2017-11-01 09:15:16 · 148 阅读 · 0 评论 -
3Sum
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.原创 2017-10-11 18:17:36 · 169 阅读 · 0 评论 -
Two Sum
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have exactly one solution, and you may not use the same element twice.原创 2017-10-09 08:59:24 · 148 阅读 · 0 评论 -
[NK]替换空格
替换空格 题目描述 请实现一个函数,将一个字符串中的每个空格替换成“%20”。例如,当字符串为We Are Happy.则经过替换之后的字符串为We%20Are%20Happy。 #include "stdafx.h" #include <iostream> #include <string> using namespace std; /* 从前往后替换,后面的...原创 2018-07-15 11:09:55 · 144 阅读 · 0 评论