自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(13)
  • 收藏
  • 关注

原创 leetcode 283. Move Zeroes

题目: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 example, given nums = [0, 1, 0, 3, 12], after ca

2016-04-29 09:17:09 262

转载 python matplotlib中文显示问题

    python matplotlib中文显示问题            Python中的matplotlib仅支持Unicode编码,默认是不显示中文的,如果让其默认显示中文,可进行如下配置:1、在python的安装目录中找到配置文件: %Python_Home%\Lib\site-packages\matplotlib\mpl-data\matplo

2016-04-28 12:04:13 2967

原创 leetcode 12. Integer to Roman

题目:Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999.给一个整数翻译为罗马数字。方法一:将个十百千每位的数字取出来,利用switch的每位0-9的十个分支,得到相应的罗马字符好理解,代码长c

2016-04-28 11:16:04 270

原创 leetcode 11. Container With Most Water

题目:Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i,

2016-04-27 09:41:47 269

原创 14. Longest Common Prefix

题目:Write a function to find the longest common prefix string amongst an array of strings.写一个函数找到多个字符串中最长前缀。描述方法:假设字符串数组为 { "12345" , "1246" , "1248"},最长前缀为 “12”。字符串数组声明  char * str[]= 

2016-04-26 10:52:27 334

原创 leetcode 202. Happy Number

题目:Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of th

2016-04-25 09:29:37 280

原创 背包问题-堆栈-找出其中一组解(总体积为T,n件物品体积分别是w1,w2,...,w2n,找出若干件恰好装满背包)

问题描述:总体积为T的背包,n件物品体积分别是w1,w2,...,wn,找出若干件恰好装满背包。找出满足条件的解。例如,当T=10时,各件物品的体积时{1,8,4,3,5,2}时,可找到下列4组解:(1,4,3,2),(8,2),(1,4,5),(3,5,2)。提示:(1)将物品顺序选取到背包中。假设选取了钱i件物品之后背包还没有装满,则继续选取第i+1件物品。(2)若改件

2016-04-23 17:18:23 7848 3

原创 leetcode 13 Roman to Integer

题目:Given a roman numeral, convert it to an integer . Input is guaranteed to be within the range from 1 to 3999.将罗马数字转译为阿拉伯数字。思路:基本字符相应的阿拉伯数字: I(1)、V(5)、X(10)、L(50)、C(100)、D(500)、M(10

2016-04-21 10:32:50 321

原创 leetcode 9 给一个int类型的数字,判断是否是回文数

leetcode 9 给一个int类型的数字,判断是否是回文数题目要求:Determine whether an integer is a palindrome. Do this without extra space.Could negative integers be palindromes? (ie, -1)  负数返回falseIf you are thinki

2016-04-19 09:09:05 813

原创 leetcode 8 atoi

题目:8. String to Integer (atoi)Implement atoi to convert a string t

2016-04-18 09:50:43 323

转载 深度强化学习向光资料--转载

深度强化学习(Deep Reinforcement Learning)的资源    下载LOFTER我的照片书  | Google的Deep Mind团队2013年在NIPS上发表了一篇牛x闪闪的文章,亮瞎了好多人眼睛,不幸的是我也在其中。前一段时间收集了好多关于这方面的资料,一直躺在收藏夹中,目前正在做一些相关的工作(希望有小伙

2016-04-12 16:57:18 508

转载 强化学习向光连接资料

1 学习资料增强学习课程 David Silver (有视频和ppt):http://www0.cs.ucl.ac.uk/staff/D.Silver/web/Teaching.html最好的增强学习教材:Reinforcement Learning: An Introductionhttps://webdocs.cs.ualberta.ca/~sutton/book/

2016-04-12 16:54:08 476

原创 leetcode 5 Longest Palindromic Substring

题目为:Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring.中文为:寻找一个字符串里

2016-04-12 09:42:27 315

空空如也

空空如也

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

TA关注的人

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