自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

大锅八十小锅四十

伪数据挖掘,伪机器学习,通信狗转cs汪一只,https://tinkle1129.github.io/

  • 博客(25)
  • 资源 (2)
  • 收藏
  • 关注

原创 Leetcode_Arranging Coins

Tag Binary Search Difficulty Medium Description You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins. Given n, find the total num

2017-02-28 10:31:40 412

原创 Leetcode_Combination Sum

Tag Array\Backtracking Difficulty Medium Description Given a set of candidate numbers (C) (without duplicates) and a target number (T), find all unique combinations in C where the candidate number

2017-02-27 20:33:06 285

原创 Leetcode_Search for a Range

Tag Binary Search\Array Difficulty Medium Description Given an array of integers sorted in ascending order, find the starting and ending position of a given target value.Your algorithm’s runtime c

2017-02-27 20:29:32 289

原创 Leetcode_Minimum Size Subarray Sum

Tag Array\Two Pointers\Binary Search Difficulty Medium Description Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum

2017-02-27 20:26:48 260

原创 Leetcode_Combination Sum III

Tag Array\Backtracking Difficulty Medium Description Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination sho

2017-02-27 13:59:57 263

原创 Leetcode_Search Insert Position

Tag Array/Binary Search Difficulty Easy Description Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted

2017-02-27 13:20:08 217

原创 Leetcode_Maximum Subarray

Tag Array\Dynamic Programming\Divide and Conquer Difficulty Easy Description Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example,

2017-02-27 13:15:45 246

原创 Leetcode_Plus One

Tag Array\Math Difficulty Easy Description Given a non-negative integer represented as a non-empty array of digits, plus one to the integer. You may assume the integer do not contain any leading

2017-02-27 12:46:40 273

原创 Leetcode_Merge Sorted Array

Tag Array Difficulty Easy Description Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array. Note: You may assume that nums1 has enough space (size that is

2017-02-27 12:43:19 261

原创 Leetcode_Pascal's Triangle II

Tag Array Difficulty Easy Description Given an index k, return the kth row of the Pascal’s triangle. For example, given k = 3, Return [1,3,3,1]. Code 杨辉三角形,直观解答class Solution(object): def

2017-02-27 12:35:26 242

原创 Leetcode_Best Time to Buy and Sell Stock

Tag Array/Dynamic Programming Difficulty Easy Description Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most on

2017-02-27 12:18:50 429

原创 Leetcode_Best Time to Buy and Sell Stock II

Tag Array\Greedy Difficulty Easy Description Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may comple

2017-02-27 11:16:21 244

原创 Leetcode_Two Sum II - Input array is sorted

Tag Array\Two Pointers\Binary Search Difficulty Easy Description Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target n

2017-02-27 11:08:56 261

原创 Leetcode_Majority Element

Tag Array/Divide and Conquer/Bit Manipulation Difficulty Easy Description Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ ti

2017-02-27 11:00:09 239

原创 Leetcode_Rotate Array

Tag Array Difficulty Easy Description Rotate an array of n elements to the right by k steps. For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4]. Codeclas

2017-02-26 15:58:50 235

原创 Leetcode_Contains Duplicate

Tag Array,Hash Table Difficulty Easy Description Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the

2017-02-26 14:30:25 268

原创 Leetcode_Contains Duplicate II

Tag:Array,Hash Table **Difficulty: **Easy Description: Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j]

2017-02-26 14:23:52 263

原创 Leetcode_Missing Number

Tag:Array,Math,Bit Manipulation Difficulty: Easy Given an array containing n distinct numbers taken from 0, 1, 2, …, n, find the one that is missing from the array. For example, Given nums = [0, 1

2017-02-26 14:14:23 223

原创 Leetcode_Move Zeroes

Tag: Array、Two Pointers Difficulty: Medium Description: Given an array nums, write a function to move all 0’s to the end of it while maintaining the relative order of the non-zero elements. For e

2017-02-26 13:56:38 201

原创 Leetcode_Kth Largest Element in an Array

Tag: Array、Heap、Divide and Conquer Difficulty: Medium Description: Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distin

2017-02-26 13:53:58 254

原创 Leetcode_Third Maximum Number

Tag: Array Difficult: Easy Description: Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The time complexity must

2017-02-26 13:51:39 213

原创 Leetcode_Array_Find All Numbers Disappeared in an Array

Tag: Array Difficulty: Easy Description: Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements of [1, n] inclu

2017-02-26 13:50:21 247

原创 Leetcode_Array_Max Consecutive Ones

Tag: Array Difficulty: Easy Description: Given a binary array, find the maximum number of consecutive 1s in this array. Example 1: Input: [1,1,0,1,1,1] Output: 3 Explanation: The first two d

2017-02-26 13:46:41 232

原创 立一个Flag

我再也不敢说自己是写代码的人了t^t 一定是我学习的打开方式不对。 新的一个月。少玩游戏,多写代码,多思考,只追一部剧。 写十题不如一题举一反三。 自勉。

2017-02-26 13:41:02 742

原创 Kaggle实战-最简单的DIGIT RECOGNIZER

Digit Recognizer from kagglelink: https://www.kaggle.com/c/digit-recognizerDigit Recognizer是kaggle上很基本的一道题目。数据集描述:The data files train.csv and test.csv contain gray-scale images of hand-drawn digits, f

2017-02-16 17:12:16 4035

统计学习方法笔记(部分算法含matlab代码)

以李航《统计学习方法》为参考,包含自己的理解和部分相关代码~有所不对请大家指出,新手上路,请多指教。

2015-11-17

N-臂老虎机算法(强化学习)

关于强化学习N-臂老虎机算法的理解,包括部分代码和算法流程图

2015-10-11

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除