自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 [LeetCode 62] Unique Paths(教科书般的动态规划)

题目内容62 Unique PathsA 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

2016-11-25 00:01:02 456

原创 [LeetCode 309] Best Time to Buy and Sell Stock with Cooldown(动态规划及进一步优化)

题目内容309 Best Time to Buy and Sell Stock with Cooldown 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 c

2016-11-24 19:29:31 204

原创 [LeetCode 424] Longest Repeating Character Replacement(滑动窗方法)

题目内容424 Longest Repeating Character ReplacementGiven a string that consists of only uppercase English letters, you can replace any letter in the string with another letter at most k times. Find the le

2016-11-22 21:02:38 461

原创 [LeetCode 137] Single Number II(位运算的巧妙运用初级篇)

题目内容137 Single Number II Given an array of integers, every element appears three times except for one. Find that single one.Note: Your algorithm should have a linear runtime complexity. Could you im

2016-11-14 21:38:45 381

原创 [LeetCode 108] Convert Sorted Array to Binary Search Tree

题目内容108 Convert Sorted Array to Binary Search Tree Given an array where elements are sorted in ascending order, convert it to a height balanced BST. 题目来源题目分析因为有序,此题不需要将数字插入二叉树时进行平衡二叉树操作。只需每次将数组中间的数字

2016-11-14 21:11:33 187

原创 [LeetCode 337] House Robber III

题目内容 House Robber IIITotal Accepted: 29353 Total Submissions: 71912 Difficulty: Medium Contributors: Admin The thief has found himself a new place for his thievery again. There is only one entrance

2016-11-12 19:04:13 223

空空如也

空空如也

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

TA关注的人

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