- 博客(12)
- 收藏
- 关注
原创 统计学习方法——集成学习
集成学习作为当今性能最好的多模型分类器,我们必须要了解它一下。 这里我们从最简单的集成学习Bagging开始讲起,一直讲到GBDT为止。1.集成学习集成学习是多模型学习的一种,它是集成多个弱分类器来进行决策。就是“三个臭皮匠赛过诸葛亮”,但是一般来讲是赛不了的,为什么呢?首先如果三个臭皮匠是三胞胎,那么三个臭皮匠和一个臭皮匠是无异的,另外,如何把这三个决策统一起来是另外一个问题。因此我们...
2018-03-21 15:46:29 1065
原创 leetcode(11):midium1
这次我们进入到中级的水平的题目。1leetcode#5. Longest Palindromic Substring1.1题目描述 Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.Example:...
2018-03-20 15:37:45 310
原创 leetcode(10):easy4
这是我们100道题目中最后的easy题目了。1.leetcode#437. Path Sum III1.1问题描述 You are given a binary tree in which each node contains an integer value. Find the number of paths that sum to a given value. ...
2018-03-17 10:35:02 330
原创 leetcode(9):tree
这里我们介绍几个关于树的问题。1.leetcode#226. Invert Binary Tree1.1问题描述 Invert a binary tree. 4 / \ 2 7 / \ / \ 1 3 6 9 to 4 / \ 7 2 ...
2018-03-17 09:44:05 323
原创 leetcode(8):easy3
渐渐的发现,即使是简单题,也并不简单。每当发现一些奇妙的解法时,总是能够新奇不已。1.leetcode#169. Majority Element1.1问题描述 Given an array of size n, find the majority element. The majority element is the element that appears more than...
2018-03-17 09:03:51 320
原创 leetcode(7): easy2
今天我们接着讲简单题1.leetcode#136. Single Number1.1题目描述 iven an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runt...
2018-03-15 10:26:06 373
原创 leetcode(6): easy
今天,我们主要讲几个简单的题目供大家休息。1.leetcode#20. Valid Parentheses1.1问题描述 Given a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[’ and ‘]’, determine if the input string is valid. The b...
2018-03-14 23:21:36 286
原创 leetcode(5): two array
1.leetcode#4. Median of Two Sorted Arrays1.1问题描述 here are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time comple...
2018-03-12 10:47:44 328
原创 leetcode(4):substring
今天我们来讲字符子串的问题。1.leetcode#3. Longest Substring Without Repeating Characters1.1问题描述 Given a string, find the length of the longest substring without repeating characters.Examples: Given...
2018-03-06 20:48:05 610
原创 leetcode(3):add
在这一讲中,我们主要讲解关于加法的相关题目。1.leetcode#2Add Two Numbers1.1题目描述 You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of...
2018-03-05 20:48:10 290
原创 leetcode(2):3sum
在上一讲中,我们讲解了2个数之和的问题,这一次,我们讲解3个数之和的问题。1. leetcode#15. 3Sum1.1问题描述 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 ar...
2018-03-04 17:31:53 369
原创 leetcode(1):TwoSum
从今天开始我们开始踏上leetcode这片新的土地!从征服第一块领地开始!1.leetcode#1. Two Sum1.1题目描述Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume tha...
2018-03-03 21:59:19 423
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人