自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

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

转载 一些常用的Bootstrap模板资源站

超级Bootstrap模板库:http://www.wrapbootstrap.com/2016新收录http://www.templategarden.com/https://shapebootstrap.nethttp://thebootstrapthemes.com/免费的HTML5 响应式网页模板:http://html5up.net/WP &

2017-08-31 10:15:24 2520

原创 【leetcode】第66题 Plus One 题目+解析+JAVA代码

【题目】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 zero, except the number 0 itself.

2017-08-30 23:13:16 590

转载 Javascript中!!(两个感叹号,双感叹号)的含义

原文地址 http://tantanit.com/javascript-zhong-liang-ge-gan-tan-hao-shuang-gan-tan-hao-de-zuo-yong/使用JavaScript时,有时会在变量前面加上两个感叹号,这样做表示什么含义呢?javascript中,!表示运算符“非”,如果变量不是布尔类型,会将变量自动转化为布尔类型,再取非,那么用两个!!就可以

2017-08-30 22:51:53 4891

原创 【leetcode】第65题 Valid Number 这道题用JS代码超级简单=-=

【题目】Validate if a given string is numeric.Some examples:"0" => true" 0.1 " => true"abc" => false"1 a" => false"2e10" => trueNote: It is intended for the problem statement to

2017-08-30 22:39:51 320

原创 【leetcode】第64题 Minimum Path Sum 题目+解析+JAVA代码

【题目】Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.Note: You can only move either down or

2017-08-30 22:11:49 310

原创 【leetcode】第63题 Unique Paths II 题目+解析+JAVA代码

【题目】Follow up for "Unique Paths":Now consider if some obstacles are added to the grids. How many unique paths would there be?An obstacle and empty space is marked as 1 and 0 respectively

2017-08-30 22:00:56 368

原创 【leetcode】第62题 Unique Paths 题目+解析+JAVA代码

【题目】A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot can only move either down or right at any point in time. The robot is trying to

2017-08-30 21:55:51 336

原创 【leetcode】第59题 Spiral Matrix II 题目+解析+代码

【题目】Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.For example,Given n = 3,You should return the following matrix:[ [ 1, 2, 3 ], [ 8,

2017-08-27 10:34:06 291

原创 【leetcode】第56题 Merge Intervals 题目+解析+代码

【题目】Given a collection of intervals, merge all overlapping intervals.For example,Given [1,3],[2,6],[8,10],[15,18],return [1,6],[8,10],[15,18].【解析】本题意思是要把给出的区间集合合并,输出合并后的区间集合。思路不难,主要是

2017-08-26 23:19:45 499

转载 Comparable接口与Comparator接口区别与理解

一、实现Compare接口与Comparator接口的类,都是为了对象实例数组排序的方便,因为可以直接调用 java.util.Arrays.sort(对象数组名称),可以自定义排序规则。不同之处: 1 排序规则实现的方法不同    Comparable接口的方法:compareTo(Object o)    Comparator接口的方法:compare(

2017-08-26 23:17:24 389

原创 【leetcode】第55题 Jump Game 题目+解析+代码

【题目】Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your maximum jump length at that position.D

2017-08-26 17:42:44 428

原创 【leetcode】第54题 Spiral Matrix 题目+解析+代码

【题目】Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.For example,Given the following matrix:[ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 7, 8,

2017-08-26 11:36:00 447

原创 【leetcode】第53题 Maximum Subarray 题目+解析+代码

【题目】Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [-2,1,-3,4,-1,2,1,-5,4],the contiguous subarray [4,

2017-08-26 10:53:55 453

原创 成都旅游小吃攻略

去成都旅游,吃当然是最重要的,下面我对在成都吃过的小吃进行的评价,供大家参考,想到哪个写哪个了,排名不分先后。1、甜水面我发现成都小吃里很多都喜欢放红糖,甜水面就是一个,粗面条上放一勺红糖,再放一勺辣椒,是一种我没吃过的口感,很好吃,推荐大家吃一下。2、肥肠粉肥肠粉开始听起来我没打算吃,朋友吃过后竟然说挺好吃的,我也就吃了一碗,确实还可以。成都的肥肠粉吃起来就很干净,不像有

2017-08-26 08:56:15 1404

原创 【leetcode】第44题 Wildcard Matching 题目+解析+代码

【题目】Implement wildcard pattern matching with support for '?' and '*'.'?' Matches any single character.'*' Matches any sequence of characters (including the empty sequence).The matching shou

2017-08-23 12:08:33 428

原创 【leetcode】第48题 Rotate Image 题目+解析+代码

【题目】You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?【解析】旋转矩阵discuss里一共有三个思想:1、上下对称后,对角线对称。

2017-08-22 15:28:11 304

原创 【leetcode】第47题 Permutations II(非递归法)题目+解析+代码

【题目】Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2] have the following unique permutations:[ [1,1,2], [1,2,

2017-08-22 15:00:21 314

原创 【leetcode】第46题 Permutations(递归法)题目+解析+代码

【题目】Given a collection of distinct numbers, return all possible permutations.For example,[1,2,3] have the following permutations:[ [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2],

2017-08-22 12:40:27 657

转载 全排列算法递归与非递归解析+代码

(一)递归的全排列算法(A、B、C、D)的全排列为1、A后面跟(B、C、D)的全排列2、B后面跟(A、C、D)的全排列3、C后面跟(A、B、D)的全排列4、D后面跟(A、B、C)的全排列而对1中的(B、C、D)照样可以按照上面的形式进行分解。[cpp] view plain copyprint?/***************

2017-08-22 10:39:01 336

原创 【leetcode】第38题 Count and Say 题目+解析+代码

【题目】The count-and-say sequence is the sequence of integers with the first five terms as following:1. 12. 113. 214. 12115. 1112211 is read off as "one 1" or 11.

2017-08-20 11:36:36 879

原创 【leetcode】第36题 Valid Sudoku 题目+解析+代码

【题目】Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled with the character '.'.A partially f

2017-08-19 21:13:00 399

原创 【leetcode】第32题 Longest Valid Parentheses 题目+解析+代码

【题目】Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.For "(()", the longest valid parentheses substring i

2017-08-19 19:49:04 278

转载 【leetcode】第30题 Substring with Concatenation of All Words

LeetCode30-----------Substring with Concatenation of All Words看题目都有些费劲,要不是看了几组Custom Testcase才知道题意,顺便说一句Custom Testcase这个功能在调试的时候真的非常实用。题目意思:给定一个字串不妨称为母串S,和一组单词,他们保存在一个string的顺序容器Words中,并且满足一个条件

2017-08-19 13:04:20 355

原创 【leetcode】第28题 Implement strStr() 题目+解析+代码

【题目】Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.【解析】要求实现strStr()函数。返回在子字符串needle在字符串haystack中第一次出现的位

2017-08-19 12:42:04 394

原创 成都旅游景点攻略

前几天和朋友一起去成都游玩了几天,回来写个攻略,供大家参考。我们住在了春熙路附近,前三天是在成都市内玩耍,第四天在成都景点直通车报名的青城山、都江堰一日游,本来还想去下峨眉山和乐山,但是峨眉山和乐山要两日游,没有时间了就没去。前几天九寨沟地震,景点可能要一两年才能修复好吧。成都市内大概就是下面几个地方,反正是自由行,哪天去哪里就自己决定吧。市内景点主要就是逛吃逛吃……成都小吃攻略我打算写在

2017-08-18 21:00:22 3144

转载 通过金矿模型介绍动态规划

对于动态规划,每个刚接触的人都需要一段时间来理解,特别是第一次接触的时候总是想不通为什么这种方法可行,这篇文章就是为了帮助大家理解动态规划,并通过讲解基本的01背包问题来引导读者如何去思考动态规划。本文力求通俗易懂,无异性,不让读者感到迷惑,引导读者去思考,所以如果你在阅读中发现有不通顺的地方,让你产生错误理解的地方,让你难得读懂的地方,请跟贴指出,谢谢!    ----第一节

2017-08-18 16:33:29 201

原创 【leetcode】第10题 Regular Expression Matching 题目+解析+代码

【题目】Implement regular expression matching with support for '.' and '*'.'.' Matches any single character.'*' Matches zero or more of the preceding element.The matching should cover the entire in

2017-08-18 16:04:19 844

转载 java学习路线

对Java的学习点总结很好的文章,小伙伴可以看看自己会哪个不会哪个然后针对性学习。转载自Hollis一、基础篇1.1 JVM1.1.1. Java内存模型,Java内存管理,Java堆和栈,垃圾回收http://www.jcp.org/en/jsr/detail?id=133http://ifeve.com/jmm-faq/1.1.2. 了解JVM各种参数及调优

2017-08-18 15:45:30 1038

原创 【leetcode】第20题 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 va

2017-08-09 23:06:41 380

原创 【leetcode】第14题 Longest Common Prefix 题目+解析+代码

【题目】Write a function to find the longest common prefix string amongst an array of strings.【解析】这道题比较简单,就是找出string数组中所有字符串的最大共同前缀。【代码】public class Solution { public String longestCommo

2017-08-09 17:58:55 371

转载 CSDN博客积分规则

博客积分是CSDN对用户努力的认可和奖励,也是衡量博客水平的重要标准。博客等级也将由博客积分唯一决定。积分规则具体如下:1、每发布一篇原创或者翻译文章:可获得10分;2、每发布一篇转载文章:可获得2分;3、博主的文章每被评论一次:可获得1分;4、每发表一次评论:可获得1分(自己给自己评论、博主回复评论不获得积分);5、博文阅读次数每超过100次:可获得1分,阅读加分最高加到100分,即文章

2017-08-09 14:08:34 898 8

转载 CSDN写博客时如何预览

最近刚刚开始在CSDN写博客,发现CSDN博客各种纠结,图片的上传感觉就及其麻烦了。等你好不容易写好后,发现还得审核,审核一过你突然发现你的格式没排版好,然后你又修改,最后又审核..实在无力吐槽..我当时就找了一圈,总觉的文字编辑界面上面应该有一个预览按钮才对呀,否则实在太不人性化了吧,简直打消积极性啊....直到昨天发现保存草稿时,才发现CSDN也可以变相的进行预览,废话不多说,直接上图步骤:

2017-08-09 13:28:03 2076 2

原创 【leetcode】第6题 ZigZag Conversion 题目+解析+代码

【题目】The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H NA P L

2017-08-09 11:29:20 688

转载 csdn如何转载别人的文章

转载于:http://blog.csdn.NET/jiangping_zhu/article/details/18044109作者:包心菜加糯米饭1、找到要转载的文章,用chrome浏览器打开,右键选择审查元素2、在chrome中下方的框里找到对应的内容,html脚本中找到对应的节点,选中节点,网页上被选中内容会被高亮显示,然后右键菜单选中 Copy as HTML

2017-08-09 11:07:35 344

空空如也

空空如也

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

TA关注的人

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