自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

原创 [LeetCode] Search in Rotated Sorted Array II

Search in Rotated Sorted Array II Follow up for "Search in Rotated Sorted Array": What if duplicates are allowed? Would this affec...

2015-07-31 18:29:16 500 0

原创 [LeetCode] Remove Duplicates from Sorted Array II

Remove Duplicates from Sorted Array II Follow up for "Remove Duplicates": What if duplicates are allowed at most twice? For exampl...

2015-07-30 14:49:39 555 0

原创 [LeetCode] Word Search

Word Search Given a 2D board and a word, find if the word exists in the grid. The word can be constructed from letters of sequentially adjace...

2015-07-30 13:57:16 624 0

原创 [LeetCode] Combinations

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 so...

2015-07-29 17:15:59 499 0

原创 [LeetCode] Set Matrix Zeroes

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. click to show follow up. F...

2015-07-29 16:32:44 606 0

原创 [LeetCode] Minimum Path Sum

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 n...

2015-07-28 17:14:20 533 0

原创 [LeetCode] Simplify Path

Simplify Path Given an absolute path for a file (Unix-style), simplify it. For example, path = "/home/", => "/home" ...

2015-07-28 15:24:05 452 0

原创 [LeetCode] Unique Paths II

Unique Paths II Follow up for "Unique Paths": Now consider if some obstacles are added to the grids. How many unique paths would th...

2015-07-28 14:07:23 494 0

原创 [LeetCode] Sqrt(x)

Sqrt(x) Implement int sqrt(int x). Compute and return the square root of x. 解题思路: 这道题是求x的平方根。 解法1:基本的想法就是枚举,从1到n进行遍历,直到result*result>x,那么结果就是r...

2015-07-27 21:34:05 750 0

原创 [LeetCode] Unique Paths

Unique Paths 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 ei...

2015-07-27 19:45:48 457 0

原创 [LeetCode] Maximal Square

Maximal Square Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area. ...

2015-07-27 14:39:36 706 0

原创 [LeetCode] Majority Element II

Majority Element II Given an integer array of size n, find all elements that appear more than ⌊ n/3 ⌋ times. The algorithm should run in linea...

2015-07-27 11:47:09 614 0

原创 [LeetCode] Kth Smallest Element in a BST

Kth Smallest Element in a BST Given a binary search tree, write a function kthSmallestto find the kth smallest element in it. Note:  You may...

2015-07-26 14:28:51 951 0

原创 [LeetCode] Palindrome Linked List

Palindrome Linked List Given a singly linked list, determine if it is a palindrome. Follow up: Could you do it in O(n) time and O(1) space...

2015-07-26 10:31:58 797 0

原创 [LeetCode] Lowest Common Ancestor of a Binary Tree

Lowest Common Ancestor of a Binary Tree  Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According...

2015-07-25 18:57:56 898 0

原创 [LeetCode] Lowest Common Ancestor of a Binary Search Tree

Lowest Common Ancestor of a Binary Search Tree Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the B...

2015-07-24 16:56:54 1528 0

原创 [LeetCode] Product of Array Except Self

Product of Array Except Self Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the p...

2015-07-24 16:21:14 912 0

原创 [LeetCode] Delete Node in a Linked List

Delete Node in a Linked List Write a function to delete a node (except the tail) in a singly linked list, given only access to that node. Sup...

2015-07-24 14:11:11 1145 0

原创 [LeetCode] Search a 2D Matrix II

Search a 2D Matrix II Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: In...

2015-07-24 13:06:18 1141 0

原创 vs2013创建、安装、调试Windows Service程序

Windows服务以服务的形式运行,有些情况下非常有用。用VS2013创建windows服务的过程如下: 创建服务。 1、文件-》新建-》项目-》windows桌面-》windows服务,修改你要的项目名称。

2015-07-10 14:49:10 4008 1

原创 [LeetCode] Implement Queue using Stacks

Implement Queue using Stacks Implement the following operations of a queue using stacks. push(x) -- Push element x to the back of queue.pop() -...

2015-07-08 21:13:35 1931 0

原创 [LeetCode] Summary Ranges

Summary Ranges Given a sorted integer array without duplicates, return the summary of its ranges. For example, given [0,1,2,4,5,7], return [&...

2015-07-06 18:45:01 1229 1

原创 [LeetCode] Power of Two

Power of Two Given an integer, write a function to determine if it is a power of two. Credits: Special thanks to @jianchao.li.fighter for adding t...

2015-07-06 13:26:05 1801 2

原创 molebox launcher fatal (could not open boxfile)

运行一个exe程序,弹出以下框: 可能是系统的环境设置问题。你的文件中的路径包括中文,但是你的系统可能是英文的。按教程http://www.kangry.net/blog/?type=article&article_id=40操作重启电脑即可。 转载请注明:康瑞的部落 ...

2015-07-04 22:33:53 7092 0

原创 通过文件对比工具Merge数据库

项目分成线下开发版、线上测试版、线上生产版,因此对应有三个数据库。对于一些静态数据,常常需要同步。修改了线下的开发版本,同时也需要更新线上的测试版和线上生产版数据库,有时候线上的一些数据库修改,也要体现在线下来。这是双向的关系,因此不能简单的将一个数据库覆盖另外一个数据库。现在介绍一种数据合并方法...

2015-07-01 14:22:07 1445 0

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