自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

郝春雨的博客

不是吃货的程序员不是好作家

  • 博客(27)
  • 收藏
  • 关注

原创 【LeetCode】27.Remove Element(Easy)解题报告

【LeetCode】27.Remove Element(Easy)解题报告题目地址:https://leetcode.com/problems/remove-element/description/ 题目描述:   Given an array and a value, remove all instances of that value in-place and return the new

2017-11-27 22:23:10 91

原创 【LeetCode】11.Container With Most Water(Medium)解题报告

【LeetCode】11.Container With Most Water(Medium)解题报告题目地址:https://leetcode.com/problems/container-with-most-water/description/ 题目描述:   Given n non-negative integers a1, a2, …, an, where each repre...

2017-11-27 21:49:26 131

原创 【LeetCode】491.Increasing Subsequences(Medium)解题报告

【LeetCode】491.Increasing Subsequences(Medium)解题报告题目地址:https://leetcode.com/problems/increasing-subsequences/description/ 题目描述:   Given an integer array, your task is to find all the different possib

2017-11-27 21:18:38 174

原创 【LeetCode】623.Add One Row to Tree(Medium)解题报告

【LeetCode】623.Add One Row to Tree(Medium)解题报告题目地址:https://leetcode.com/problems/add-one-row-to-tree/description/ 题目描述:   Given the root of a binary tree, then value v and depth d, you need to add a

2017-11-26 19:08:27 175

原创 【LeetCode】228.Summary Ranges(Medium)解题报告

【LeetCode】228.Summary Ranges(Medium)解题报告题目地址:https://leetcode.com/problems/summary-ranges/description/ 题目描述:   Given a sorted integer array without duplicates, return the summary of its ranges.Exam

2017-11-23 19:44:28 151

原创 spark程序打包集群运行方法及使用中的几个问题解决

spark程序打包集群运行

2017-11-23 10:18:31 3313

原创 【LeetCode】99.Recover Binary Search Tree(Hard)解题报告

【LeetCode】99.Recover Binary Search Tree(Hard)解题报告题目地址:https://leetcode.com/problems/recover-binary-search-tree/description/ 题目描述:   Two elements of a binary search tree (BST) are swapped by mistake.

2017-11-23 09:13:56 191

原创 【LeetCode】41. First Missing Positive(Hard)解题报告

【LeetCode】41. First Missing Positive(Hard)解题报告题目地址:https://leetcode.com/problems/first-missing-positive/description/ 题目描述:   Given an unsorted integer array, find the first missing positive int...

2017-11-23 09:09:27 130

原创 【LeetCode】726.Number of Atoms(Hard)解题报告

【LeetCode】726.Number of Atoms(Hard)解题报告题目地址:https://leetcode.com/problems/number-of-atoms/description/ 题目描述:   Given a chemical formula (given as a string), return the count of each atom.   An at

2017-11-23 09:03:26 873

原创 【LeetCode】599.Minimum Index Sum of Two Lists(Easy)解题报告

【LeetCode】599.Minimum Index Sum of Two Lists(Easy)解题报告题目地址:https://leetcode.com/problems/minimum-index-sum-of-two-lists/description/ 题目描述:   Suppose Andy and Doris want to choose a restaurant for di

2017-11-22 10:21:42 191

原创 【LeetCode】687.Longest Univalue Path(Easy)解题报告

【LeetCode】687.Longest Univalue Path(Easy)解题报告题目地址:https://leetcode.com/problems/longest-univalue-path/description/ 题目描述:   Given a binary tree, find the length of the longest path where each node in

2017-11-22 09:39:58 721

原创 【LeetCode】698.Partition to K Equal Sum Subsets(Medium)解题报告

【LeetCode】698.Partition to K Equal Sum Subsets(Medium)解题报告题目地址:https://leetcode.com/problems/partition-to-k-equal-sum-subsets/description/ 题目描述:   Given an array of integers nums and a positive inte

2017-11-22 09:00:51 425

原创 【LeetCode】160.Intersection of Two Linked Lists(Easy)解题报告

【LeetCode】160.Intersection of Two Linked Lists(Easy)解题报告题目地址:https://leetcode.com/problems/intersection-of-two-linked-lists/description/ 题目描述:   Write a program to find the node at which the interse

2017-11-15 23:20:45 152

原创 【LeetCode】6.ZigZag Conversion(Medium)解题报告

【LeetCode】6.ZigZag Conversion(Medium)解题报告题目地址:https://leetcode.com/problems/zigzag-conversion/description/ 题目描述:   The string “PAYPALISHIRING” is written in a zigzag pattern on a given number of row

2017-11-15 10:42:07 182

原创 【LeetCode】646.Maximum Length of Pair Chain(Medium)解题报告

【LeetCode】646.Maximum Length of Pair Chain(Medium)解题报告题目地址:https://leetcode.com/problems/maximum-length-of-pair-chain/description/ 题目描述:   You are given n pairs of numbers. In every pair, the first

2017-11-15 09:02:55 237

原创 【LeetCode】88.Merge Sorted Array(easy)解题报告

【LeetCode】88.Merge Sorted Array(easy)解题报告题目地址:https://leetcode.com/problems/merge-sorted-array/description/ 题目描述:   Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as on...

2017-11-15 08:54:32 211

原创 【LeetCode】464.Can I Win(Medium)解题报告

【LeetCode】464.Can I Win(Medium)解题报告tags: DP Minimax题目地址:https://leetcode.com/problems/can-i-win/description/ 题目描述:   In the “100 game,” two players take turns adding, to a running total, any integer

2017-11-08 18:42:31 1197

原创 【LeetCode】581.Shortest Unsorted Continuous Subarray(easy)解题报告

【LeetCode】581.Shortest Unsorted Continuous Subarray(easy)解题报告题目地址:https://leetcode.com/problems/shortest-unsorted-continuous-subarray/description/ 题目描述:   Given an integer array, you need to find on

2017-11-07 23:33:54 224

转载 XGBoost 与 Boosted Tree(GBDT)(转)

转自:XGBoost与Boosted Tree | 我爱计算机 1. 前言   应 @龙星镖局 兄邀请写这篇文章。作为一个非常有效的机器学习方法,Boosted Tree是数据挖掘和机器学习中最常用的算法之一。因为它效果好,对于输入要求不敏感,往往是从统计学家到数据科学家必备的工具之一,它同时也是kaggle比赛冠军选手最常用的工具。最后,因为它的效果好,计算复杂度不高,也在工业界中有大量的应

2017-11-06 23:40:31 3886

原创 【LeetCode】135.Candy(hard)解题报告

【LeetCode】135.Candy(hard)解题报告tags: greedy题目地址:https://leetcode.com/problems/candy/description/ 题目描述:   There are N children standing in a line. Each child is assigned a rating value.   You...

2017-11-06 19:13:26 242

原创 【LintCode】454.矩阵面积(入门)解题报告

【LintCode】454.矩阵面积(入门)解题报告题目地址:http://www.lintcode.com/zh-cn/problem/rectangle-area/ 题目描述:   实现一个矩阵类Rectangle,包含如下的一些成员变量与函数: 两个共有的成员变量 width 和 height 分别代表宽度和高度。 一个构造函数,接受2个参数 width 和 heig

2017-11-05 20:23:50 992

原创 【LintCode】3.统计数字(Medium)解题报告

【LintCode】3.统计数字解题报告(Medium)题目地址:http://www.lintcode.com/zh-cn/problem/digit-counts/ 题目描述:   计算数字k在0到n中的出现的次数,k可能是0~9的一个值Example:  例如n=12,k=1,在 [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],我们发现1出现了5次

2017-11-05 18:54:17 370

原创 【LeetCode】419.Battleships in a Board(Medium)解题报告

【LeetCode】419.Battleships in a Board解题报告(Medium)题目地址:https://leetcode.com/problems/battleships-in-a-board/description/ 题目描述:   Given an 2D board, count how many battleships are in it. The battleship

2017-11-05 16:42:36 152

原创 【LeetCode】10.Regular Expression Matching(hard)解题报告

【LeetCode】10.Regular Expression Matching(hard)解题报告tags: DP String题目地址:https://leetcode.com/problems/regular-expression-matching/description/ 题目描述:   Implement regular expression matching with suppor

2017-11-05 00:21:09 254

原创 【LeetCode】412.Fizz Buzz(easy)解题报告

【LeetCode】412.Fizz Buzz(easy)解题报告题目地址:https://leetcode.com/problems/fizz-buzz/description/ 题目描述:   Write a program that outputs the string representation of numbers from 1 to n.   But for multipl

2017-11-05 00:13:37 172

原创 【LeetCode】664.Strange Printer(hard)解题报告

【LeetCode】664.Strange Printer解题报告tags: DP题目地址:https://leetcode.com/problems/strange-printer/description/ 题目描述:   There is a strange printer with the following two special requirements:   1. The p

2017-11-05 00:05:21 372

转载 python常用的一些东西——sys、os等(转)

1.常用内置函数:(不用import就可以直接使用)help(obj) 在线帮助, obj可是任何类型 callable(obj) 查看一个obj是不是可以像函数一样调用 repr(obj) 得到obj的表示字符串,可以利用这个字符串eval重建该对象的一个拷贝 eval_r(str) 表示合法的python表达式,返回这个表达式 dir(obj) 查看obj的name space中可见的

2017-11-03 19:03:12 179

空空如也

空空如也

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

TA关注的人

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