<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[buptlrw的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/buptlrw</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; buptlrw]]></copyright><item><title><![CDATA[递归和非递归方法实现斐波那契数列]]></title><link>https://blog.csdn.net/buptlrw/article/details/51141765</link><guid>https://blog.csdn.net/buptlrw/article/details/51141765</guid><author>buptlrw</author><pubDate>Wed, 13 Apr 2016 11:32:56 +0800</pubDate><description><![CDATA[介绍
斐波那契数列（Fibonacci sequence），又称黄金分割数列、因数学家列昂纳多·斐波那契（Leonardoda
 Fibonacci[1]  ）以兔子繁殖为例子而引入，故又称为“兔子数列”，指的是这样一个数列：0、1、1、2、3、5、8、13、21、34、……在数学上，斐波纳契数列以如下被以递归的方法定义：F（0）=0，F（1）=1，F（n）=F(n-1)+F(n-2)（n≥2]]></description><category></category></item><item><title><![CDATA[算法基础——十种常用排序算法的Java及Python实现]]></title><link>https://blog.csdn.net/buptlrw/article/details/51029791</link><guid>https://blog.csdn.net/buptlrw/article/details/51029791</guid><author>buptlrw</author><pubDate>Fri, 01 Apr 2016 14:58:46 +0800</pubDate><description><![CDATA[概述
八大排序算法不用多说了，程序员算法基础必须要掌握的，现在总结一下加深记忆。下图是这八大排序算法的分类、名称、时间空间复杂度，以及稳定性。


代码
以下是经典八大排序算法的Java及Python代码，都是基于经典算法书籍《算法导论》里的伪代码实现的，我在关键语句部分附上了注释。
按照上图中的顺序分别介绍八大排序算法的实现，前面是Java，后面是Python。Java的排序函数写在]]></description><category></category></item><item><title><![CDATA[leetcode第24题——**Swap Nodes in Pairs]]></title><link>https://blog.csdn.net/buptlrw/article/details/50786121</link><guid>https://blog.csdn.net/buptlrw/article/details/50786121</guid><author>buptlrw</author><pubDate>Thu, 03 Mar 2016 09:47:19 +0800</pubDate><description><![CDATA[题目


Given a linked list, swap every two adjacent nodes and return its head.

For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.

Your algorithm should use only constant]]></description><category></category></item><item><title><![CDATA[leetcode第23题——***Merge k Sorted Lists]]></title><link>https://blog.csdn.net/buptlrw/article/details/50776391</link><guid>https://blog.csdn.net/buptlrw/article/details/50776391</guid><author>buptlrw</author><pubDate>Tue, 01 Mar 2016 23:11:32 +0800</pubDate><description><![CDATA[题目
Merge k sorted
 linked lists and return it as one sorted list. Analyze and describe its complexity.

思路
将数组中的k个有序链表归并成一个有序链表，并分析时间复杂度。该题可以在第22题-"merge two sorted lists"的基础上设计算法。
一开始想到遍历数组的k-1]]></description><category></category></item><item><title><![CDATA[leetcode第22题——**Generate Parentheses]]></title><link>https://blog.csdn.net/buptlrw/article/details/50763384</link><guid>https://blog.csdn.net/buptlrw/article/details/50763384</guid><author>buptlrw</author><pubDate>Mon, 29 Feb 2016 09:55:52 +0800</pubDate><description><![CDATA[题目


Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.

For example, given n = 3, a solution set is:

"((()))", "(()())", "(())()", "()(())]]></description><category></category></item><item><title><![CDATA[leetcode第21题——*Merge Two Sorted Lists]]></title><link>https://blog.csdn.net/buptlrw/article/details/50758925</link><guid>https://blog.csdn.net/buptlrw/article/details/50758925</guid><author>buptlrw</author><pubDate>Sun, 28 Feb 2016 10:09:15 +0800</pubDate><description><![CDATA[题目
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first
 two lists.

思路
把两个有序链表归并成一个有序链表。先用比较笨但很简洁的办法：遍历两个有序链表的节点，比较值]]></description><category></category></item><item><title><![CDATA[leetcode第20题——*Valid Parentheses]]></title><link>https://blog.csdn.net/buptlrw/article/details/50734292</link><guid>https://blog.csdn.net/buptlrw/article/details/50734292</guid><author>buptlrw</author><pubDate>Sat, 27 Feb 2016 11:45:43 +0800</pubDate><description><![CDATA[题目


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]]></description><category></category></item><item><title><![CDATA[leetcode第19题——*Remove Nth Node From End of List]]></title><link>https://blog.csdn.net/buptlrw/article/details/50699802</link><guid>https://blog.csdn.net/buptlrw/article/details/50699802</guid><author>buptlrw</author><pubDate>Fri, 19 Feb 2016 18:47:47 +0800</pubDate><description><![CDATA[题目


Given a linked list, remove the nth node from the end of list and return its head.

For example,
   Given linked list: 1->2->3->4->5, and n = 2.

   After removing the second node from the ]]></description><category></category></item><item><title><![CDATA[leetcode第18题——**4Sum]]></title><link>https://blog.csdn.net/buptlrw/article/details/50558401</link><guid>https://blog.csdn.net/buptlrw/article/details/50558401</guid><author>buptlrw</author><pubDate>Sat, 23 Jan 2016 00:13:42 +0800</pubDate><description><![CDATA[题目

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 of target.
Note:


Ele]]></description><category></category></item><item><title><![CDATA[leetcode第17题——**Letter Combinations of a Phone Number]]></title><link>https://blog.csdn.net/buptlrw/article/details/50565009</link><guid>https://blog.csdn.net/buptlrw/article/details/50565009</guid><author>buptlrw</author><pubDate>Sat, 23 Jan 2016 00:10:22 +0800</pubDate><description><![CDATA[题目

Given a digit string, return all possible letter combinations that the number could represent.
A mapping of digit to letters (just like on the telephone buttons) is given below.


Input:Digi]]></description><category></category></item><item><title><![CDATA[leetcode第16题——**3Sum Closest]]></title><link>https://blog.csdn.net/buptlrw/article/details/50560545</link><guid>https://blog.csdn.net/buptlrw/article/details/50560545</guid><author>buptlrw</author><pubDate>Fri, 22 Jan 2016 14:58:46 +0800</pubDate><description><![CDATA[题目


Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have]]></description><category></category></item><item><title><![CDATA[leetcode第15题——**3Sum]]></title><link>https://blog.csdn.net/buptlrw/article/details/50545711</link><guid>https://blog.csdn.net/buptlrw/article/details/50545711</guid><author>buptlrw</author><pubDate>Wed, 20 Jan 2016 00:31:54 +0800</pubDate><description><![CDATA[题目

Given an array S of n integers, are there elements a,
b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero.
Note:


Elements in a triplet (a,]]></description><category></category></item><item><title><![CDATA[leetcode第14题——*Longest Common Prefix]]></title><link>https://blog.csdn.net/buptlrw/article/details/50479478</link><guid>https://blog.csdn.net/buptlrw/article/details/50479478</guid><author>buptlrw</author><pubDate>Thu, 07 Jan 2016 22:29:09 +0800</pubDate><description><![CDATA[题目
Write a function to find the longest common prefix string amongst an array of strings.
思路
寻找字符串数组中所有字符串的最长公共前缀，注意是所有字符串的公共前缀，比如数组['hello', 'hell', 'he']的最长公共前缀为'he'。显然如果存在空字符串则公共前缀为空字符串。可以先将第一个字]]></description><category></category></item><item><title><![CDATA[leetcode第13题——*Roman to Integer]]></title><link>https://blog.csdn.net/buptlrw/article/details/50472152</link><guid>https://blog.csdn.net/buptlrw/article/details/50472152</guid><author>buptlrw</author><pubDate>Wed, 06 Jan 2016 22:51:52 +0800</pubDate><description><![CDATA[题目


Given a roman numeral, convert it to an integer.

Input is guaranteed to be within the range from 1 to 3999.
思路

这道题是12题逆向思维，事实上比12题要简单一点。我们知道：罗马数字由五个字母组合而成，分别是I(1)、V(5)、X(10)、L(50)、C(100]]></description><category></category></item><item><title><![CDATA[leetcode第12题——**Integer to Roman]]></title><link>https://blog.csdn.net/buptlrw/article/details/50471660</link><guid>https://blog.csdn.net/buptlrw/article/details/50471660</guid><author>buptlrw</author><pubDate>Wed, 06 Jan 2016 21:05:21 +0800</pubDate><description><![CDATA[题目


Given an integer, convert it to a roman numeral.

Input is guaranteed to be within the range from 1 to 3999.
思路

题目要求把1-3999的整数转换为罗马数字。只要找出罗马数字各位上的规律，就可以很方便地解出了。个位上的罗马数字(1-9)为'I','II','II]]></description><category></category></item><item><title><![CDATA[leetcode第11题——**Container With Most Water]]></title><link>https://blog.csdn.net/buptlrw/article/details/50470182</link><guid>https://blog.csdn.net/buptlrw/article/details/50470182</guid><author>buptlrw</author><pubDate>Wed, 06 Jan 2016 17:08:02 +0800</pubDate><description><![CDATA[题目


Given n non-negative integers a1, a2,
 ..., an, where each represents a point at coordinate (i, ai). n vertical
 lines are drawn such that the two endpoints of line i is at (i, ai) and (i,]]></description><category></category></item><item><title><![CDATA[leetcode第10题——***Regular Expression Matching]]></title><link>https://blog.csdn.net/buptlrw/article/details/50462467</link><guid>https://blog.csdn.net/buptlrw/article/details/50462467</guid><author>buptlrw</author><pubDate>Tue, 05 Jan 2016 16:07:08 +0800</pubDate><description><![CDATA[题目


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]]></description><category></category></item><item><title><![CDATA[tesseract结合selenium快速搜索图片中的文字]]></title><link>https://blog.csdn.net/buptlrw/article/details/50456464</link><guid>https://blog.csdn.net/buptlrw/article/details/50456464</guid><author>buptlrw</author><pubDate>Mon, 04 Jan 2016 15:55:35 +0800</pubDate><description><![CDATA[大家有没有遇到过这样的问题：当我们看到有些图片中的文字（比如论文中的图片或公式等），想搜索一下，但苦于不能直接复制，只能手动敲入在百度的搜索框；或者碰到其他复制比较麻烦的地方，比如cmd窗口，也是如此.这样费时费力，还可能会输入错误。
因此我尝试用python的验证码识别模块tesseract和自动化测试模块selenium写了个很简单的python程序，可以将想要搜索的文字截图下来保存在pyt]]></description><category></category></item><item><title><![CDATA[leetcode第9题——*Palindrome Number]]></title><link>https://blog.csdn.net/buptlrw/article/details/50451466</link><guid>https://blog.csdn.net/buptlrw/article/details/50451466</guid><author>buptlrw</author><pubDate>Sun, 03 Jan 2016 17:20:42 +0800</pubDate><description><![CDATA[题目

Determine whether an integer is a palindrome. Do this without extra space.
click to show spoilers.
Some hints:
Could negative integers be palindromes? (ie, -1)
If you are thinking of convert]]></description><category></category></item><item><title><![CDATA[leetcode第8题——*String to Integer (atoi)]]></title><link>https://blog.csdn.net/buptlrw/article/details/50444534</link><guid>https://blog.csdn.net/buptlrw/article/details/50444534</guid><author>buptlrw</author><pubDate>Fri, 01 Jan 2016 11:07:29 +0800</pubDate><description><![CDATA[题目

Implement atoi to convert a string to an integer.
Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible inpu]]></description><category></category></item></channel></rss>