自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 4Sum

最近较忙,没怎么写LeetCode以后尽量保证每天一道题目以上。 Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum o

2015-07-19 09:29:00 342

转载 欢迎使用CSDN-markdown编辑器

欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:Markdown和扩展Markdown简洁的语法代码块高亮图片链接和图片上传LaTex数学公式UML序列图和流程图离线写博客导入导出Markdown文件丰富的快捷键快捷键加粗 Ctrl + B 斜体 Ctrl + I 引用 Ctrl

2015-07-19 09:25:29 279

转载 LeetCode Regular Expression Matching

题目来源:https://leetcode.com/problems/regular-expression-matching/Regular Expression Matching‘.’匹配任意单个字符,‘*’匹配0个或多个前一字符。如果匹配整个串返回true。例:isMatch("aa","a") → falseisMatch("aa","aa")

2015-06-07 21:35:43 307

原创 LeetCode Palindrome Number

题目来源:https://leetcode.com/problems/palindrome-number/Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindrome

2015-06-07 19:57:49 312

原创 LeetCode String to Integer (atoi)

问题来源:https://leetcode.com/problems/string-to-integer-atoi/Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cases. If you want a challenge, please do not

2015-06-06 20:50:57 269

原创 LeetCode Reverse Integer

题目来源:https://leetcode.com/problems/reverse-integer/Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321click to show spoilers.Have you thought about this?Here ar

2015-06-06 17:38:13 291

原创 LeetCode ZigZag Conversion

题目来源:https://leetcode.com/problems/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

2015-06-06 17:10:35 363

原创 LeetCode Longest Palindromic Substring

问题来源:https://leetcode.com/problemset/algorithms/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 uni

2015-06-06 16:04:01 271

原创 LeetCode Median of Two Sorted Arrays

题目来源:https://leetcode.com/problems/median-of-two-sorted-arrays/There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run t

2015-06-06 10:54:31 323

原创 LeetCode Longest Substring Without Repeating Characters

题目来源:https://leetcode.com/problems/longest-substring-without-repeating-characters/Given a string, find the length of the longest substring without repeating characters. For example, the longest su

2015-06-05 18:36:50 291

原创 LeetCode Two Sum

问题描述:https://leetcode.com/problems/two-sum/Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the

2015-06-05 18:23:54 334

原创 LeetCode Add Two Numbers

问题描述:https://leetcode.com/problems/two-sum/Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers s

2015-06-05 16:25:12 471

转载 Maximal Square

转载自:lhttp://www.cnblogs.com/jcliBlogger/p/4548751.htmlWell, this problem desires for the use of dynamic programming. They key to any DP problem is to come up with the state equation. In this pro

2015-06-05 10:28:51 409

原创 杭电 1005 Number Sequence

网上找了不少答案,都不满意,算了还是自己做吧。Problem DescriptionA number sequence is defined as follows:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.Given A, B, and n, you are to calcu

2015-05-31 16:35:39 316

转载 C语言中可变参数的用法

转载自:http://c.biancheng.net/cpp/html/713.html我们在C语言编程中会遇到一些参数个数可变的函数,例如printf(),这个函数,它的定义是这样的:int printf( const char* format, ...);它除了有一个参数format固定以外,后面跟的参数的个数和类型是可变的,例如我们可以有以下不同的调用方法:print

2015-05-18 21:47:06 388

转载 数字签名过程

装载自:http://blog.chinaunix.net/uid-26149879-id-2240496.html1,用户A将明文通过hash运算(散列)生成数字摘要1,用户A用自己的私钥对摘要进行加密生成数字签名1.2,用户A将明文+数字签名1+A用户的公钥(证书),准备将这些信息发到B用户,但是这个过程中,用户A明文是不安全的是可见的,我们需要对这三个文件进行加密。3,用户A

2015-02-25 16:55:13 1610

原创 C++、Java、python 字符串比较

学的语言越多,就会特别容易忘记mou'zh

2014-10-16 10:07:26 1748

原创 zipfile

昨天写爬虫的时候,要实现一个功能,打包一个文件夹为zip文件。经过望厦工

2014-10-09 10:05:12 522

空空如也

空空如也

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

TA关注的人

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