自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(84)
  • 资源 (3)
  • 收藏
  • 关注

原创 LeetCode-153.Find Minimum in Rotated Sorted Array

https://leetcode.com/problems/find-minimum-in-rotated-sorted-array/Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2

2016-05-31 12:41:39 329

原创 LeetCode-199.Binary Tree Right Side View

https://leetcode.com/problems/binary-tree-right-side-view/Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to b

2016-05-30 22:04:47 380

原创 LeetCode-127.Word Ladder

https://leetcode.com/problems/word-ladder/Given two words (beginWord and endWord), and a dictionary's word list, find the length of shortest transformation sequence from beginWord to endWord, su

2016-05-30 21:13:26 430

原创 LeetCode-290.Word Pattern

https://leetcode.com/problems/word-pattern/Given a pattern and a string str, find if str follows the same pattern.Here follow means a full match, such that there is a bijection between a l

2016-05-30 16:16:00 516

原创 LeetCode-223.Rectangle Area

https://leetcode.com/problems/rectangle-area/Find the total area covered by two rectilinear rectangles in a 2D plane.Each rectangle is defined by its bottom left corner and top right corner

2016-05-30 15:16:08 379

原创 LeetCode-224.Basic Calculator

https://leetcode.com/problems/basic-calculator/Implement a basic calculator to evaluate a simple expression string.The expression string may contain open ( and closing parentheses ), the p

2016-05-29 22:39:54 376

原创 LeetCode-227.Basic Calculator II

https://leetcode.com/problems/basic-calculator-ii/Implement a basic calculator to evaluate a simple expression string.The expression string contains only non-negative integers, +, -, *, / op

2016-05-29 21:13:19 486

原创 LeetCode-78.Subsets

https://leetcode.com/problems/subsets/Given a set of distinct integers, nums, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set mus

2016-05-29 16:52:57 466

原创 LeetCode-73.Set Matrix Zeroes

https://leetcode.com/problems/set-matrix-zeroes/Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.Follow up:Did you use extra space?A straigh

2016-05-29 15:49:29 482

原创 LeetCode-49.Group Anagrams

https://leetcode.com/problems/anagrams/Given an array of strings, group anagrams together.For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"], Return:[ ["ate", "eat","tea"],

2016-05-28 20:04:53 520

原创 LeetCode-242.Valid Anagram

https://leetcode.com/problems/valid-anagram/Given two strings s and t, write a function to determine if t is an anagram of s.For example,s = "anagram", t = "nagaram", return true.s = "ra

2016-05-28 19:24:49 381

原创 LeetCode-241.Different Ways to Add Parentheses

https://leetcode.com/problems/different-ways-to-add-parentheses/Given a string of numbers and operators, return all possible results from computing all the different possible ways to group numbe

2016-05-28 00:53:36 497

原创 LeetCode-34.Search for a Range

Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the order of O(log n).If the target is not found

2016-05-27 22:31:29 524

原创 LeetCode-74&240.Search a 2D Matrix

Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:Integers in each row are sorted from left to right.The first integer of each

2016-05-27 21:44:21 376

原创 LeetCode-300.Longest Increasing Subsequence

https://leetcode.com/problems/longest-increasing-subsequence/Given an unsorted array of integers, find the length of longest increasing subsequence.For example,Given [10, 9, 2, 5, 3, 7, 10

2016-05-26 22:29:29 933

原创 LeetCode-148.Sort List

https://leetcode.com/problems/sort-list/Sort a linked list in O(n log n) time using constant space complexity.采用归并排序注意快慢指针的使用,需“提前”终止判断/** * Definition for singly-linked list. * public c

2016-05-26 21:45:42 249

原创 LeetCode-147.Insertion Sort List

https://leetcode.com/problems/insertion-sort-list/Sort a linked list using insertion sortpublic ListNode InsertionSortList(ListNode head) { if (head == null || head.next == n

2016-05-26 20:39:23 327

原创 LeetCode-143.Reorder List

https://leetcode.com/problems/reorder-list/Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.

2016-05-26 18:43:37 302

原创 LeetCode-64.Minimum Path Sum

https://leetcode.com/problems/minimum-path-sum/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 pat

2016-05-26 17:15:33 268

原创 LeetCode-48.Rotate Image

https://leetcode.com/problems/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?

2016-05-26 16:54:06 332

原创 LeetCode-54&59.Spiral Matrix

https://leetcode.com/problems/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:

2016-05-25 23:51:01 397

原创 LeetCode-136&137&260.Single Number

https://leetcode.com/problems/single-number/Given an array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm should have a linear runtime co

2016-05-24 22:06:23 269

原创 LeetCode-112&113.Path Sum

https://leetcode.com/problems/path-sum/Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.For e

2016-05-24 21:50:33 266

原创 LeetCode-67.Add Binary

https://leetcode.com/problems/add-binary/Given two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100".如果a b位数不等,则进行补“0”操作public s

2016-05-24 20:32:20 288

原创 LeetCode-66.Plus One

https://leetcode.com/problems/plus-one/Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is

2016-05-24 16:43:45 271

原创 LeetCode-303.Range Sum Query - Immutable

https://leetcode.com/problems/range-sum-query-immutable/Given an integer array nums, find the sum of the elements between indices i and j (i ≤ j), inclusive.Example:Given nums = [-2, 0,

2016-05-24 13:25:56 330

原创 LeetCode-304.Range Sum Query 2D - Immutable

Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1, col1) and lower right corner (row2, col2).The above rectangle (with the red bo

2016-05-24 13:11:17 390

原创 LeetCode-203.Remove Linked List Elements

https://leetcode.com/problems/remove-linked-list-elements/Remove all elements from a linked list of integers that have value val.ExampleGiven: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val =

2016-05-24 10:22:12 333

原创 LeetCode-337.House Robber III

https://leetcode.com/problems/house-robber-iii/The thief has found himself a new place for his thievery again. There is only one entrance to this area, called the "root." Besides the root, each

2016-05-23 22:24:09 328

原创 LeetCode-198&213.House Robber

https://leetcode.com/problems/house-robber/You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping

2016-05-23 16:16:30 400

原创 LeetCode-313.Super Ugly Number

https://leetcode.com/problems/super-ugly-number/Write a program to find the nth super ugly number.Super ugly numbers are positive numbers whose all prime factors are in the given prime list 

2016-05-23 14:26:25 347

原创 LeetCode-160.Intersection of Two Linked Lists

https://leetcode.com/problems/intersection-of-two-linked-lists/Write a program to find the node at which the intersection of two singly linked lists begins.For example, the following two l

2016-05-23 13:17:25 249

原创 LeetCode-141&142.Linked List Cycle

141 https://leetcode.com/problems/linked-list-cycle/ Given a linked list, determine if it has a cycle in it.142 https://leetcode.com/problems/linked-list-cycle-ii/Given a linked list, return the

2016-05-22 22:13:50 352

原创 LeetCode-77.Combinations

https://leetcode.com/problems/combinations/Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.For example,If n = 4 and k = 2, a solution is:[ [2,4

2016-05-22 21:17:40 503

原创 LeetCode-82.Remove Duplicates from Sorted List II

https://leetcode.com/problems/remove-duplicates-from-sorted-list-ii/Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list

2016-05-22 20:33:40 343

原创 LeetCode-111.Minimum Depth of Binary Tree

https://leetcode.com/problems/minimum-depth-of-binary-tree/Given a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root node dow

2016-05-22 19:11:49 269

原创 LeetCode-121&122&123&188.Best Time to Buy and Sell Stock

https://leetcode.com/problems/best-time-to-buy-and-sell-stock/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

2016-05-22 17:07:19 427

原创 LeetCode-53.Maximum Subarray

https://leetcode.com/problems/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

2016-05-22 16:20:18 452

原创 排序算法

冒泡void BubbleSort(int[] num){ int n = num.Length; for (int i = 0; i < n-1; i++) { for (int j = 0; j < n - i - 1; j++) {

2016-05-20 14:58:04 423

原创 LeetCode-215.Kth Largest Element in an Array

https://leetcode.com/problems/kth-largest-element-in-an-array/Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct

2016-05-20 11:23:35 340

JPEG压缩神器

【摄友Hold住!JPEG压缩神器】以色列科技公司ICTV开发出的一种能够优化JPEG压缩的方法。软件自动分析一张照片在对画质不产生可见损失前提下可用的最大压缩率。ICTV称该方法预计可以将照片体积缩小50%-80%。

2014-12-16

WP8 下载网络音频到独立存储空间中播放示例

代码详解: http://blog.csdn.net/zmq570235977/article/details/20702729

2014-03-07

PDFEdit编辑器

推荐一个很好用的PDF编辑器程序可以帮助您有效地编辑PDF文件!它是世界上最好的和最好用的PDF编辑软件,很容易的即时编辑PDF文件。现在,您可以有效地使用的PDF编辑器程序以你自己的意愿读取和写入PDF格式文本,内容,图片,图片。 但是网上的版本打开时会有未注册的对话框,并且编辑过后的PDF文档每一页的右上角会带上"由Foxit PDF Editor 编辑 版权所有(c) by Foxit Software Company,2003-2009 仅用于评估"的红色标记. 这是我修改后的版本,去掉了未注册的对话框和标记

2012-10-06

空空如也

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

TA关注的人

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