<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[u010013453的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/u010013453</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; u010013453]]></copyright><item><title><![CDATA[Exact 4SAT问题是NP完全的证明]]></title><link>https://blog.csdn.net/u010013453/article/details/74364486</link><guid>https://blog.csdn.net/u010013453/article/details/74364486</guid><author>u010013453</author><pubDate>Tue, 04 Jul 2017 23:46:58 +0800</pubDate><description><![CDATA[课后习题8.8，证明4SAT是NP完全的 
总体思路是将3SAT问题归约到4SAT问题，这样就可以证明EXACT 4SAT是NP完全的。对于一个3SAT问题实例中的子句，可以通过如下方式转换为EXACT 4SAT
如果存在重复的文字，我们可以只保留其中一个，如x∨y∨y∨y x \vee y \vee y  \vee y变为x∨y  x \vee y
如果子句中同时存在xx和¬x\lnot x这两种]]></description><category></category></item><item><title><![CDATA[Leetcode题解 - 337. House Robber III]]></title><link>https://blog.csdn.net/u010013453/article/details/74360138</link><guid>https://blog.csdn.net/u010013453/article/details/74360138</guid><author>u010013453</author><pubDate>Tue, 04 Jul 2017 22:40:58 +0800</pubDate><description><![CDATA[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 house has one and only one parent house. After a tour,]]></description><category></category></item><item><title><![CDATA[Leetcode题解 - 565. Array Nesting]]></title><link>https://blog.csdn.net/u010013453/article/details/74358653</link><guid>https://blog.csdn.net/u010013453/article/details/74358653</guid><author>u010013453</author><pubDate>Tue, 04 Jul 2017 22:12:17 +0800</pubDate><description><![CDATA[A zero-indexed array A consisting of N different integers is given. The array contains all integers in the range [0, N - 1].
  
  Sets S[K] for 0 <= K < N are defined as follows:
  
  S[K] = { A[K], A[]]></description><category></category></item><item><title><![CDATA[Leetcode题解 - 3. Longest Substring Without Repeating Characters]]></title><link>https://blog.csdn.net/u010013453/article/details/74358049</link><guid>https://blog.csdn.net/u010013453/article/details/74358049</guid><author>u010013453</author><pubDate>Tue, 04 Jul 2017 22:00:55 +0800</pubDate><description><![CDATA[Given a string, find the length of the longest substring without repeating characters.Examples:Given “abcabcbb”, the answer is “abc”, which the length is 3.Given “bbbbb”, the answer is “b”, with the le]]></description><category></category></item><item><title><![CDATA[Leetcode题解 - 452. Minimum Number of Arrows to Burst Balloons]]></title><link>https://blog.csdn.net/u010013453/article/details/74356942</link><guid>https://blog.csdn.net/u010013453/article/details/74356942</guid><author>u010013453</author><pubDate>Tue, 04 Jul 2017 21:03:54 +0800</pubDate><description><![CDATA[There are a number of spherical balloons spread in two-dimensional space. For each balloon, provided input is the start and end coordinates of the horizontal diameter. Since it’s horizontal, y-coordina]]></description><category></category></item><item><title><![CDATA[Leetcode题解 - 322. Coin Change]]></title><link>https://blog.csdn.net/u010013453/article/details/74356293</link><guid>https://blog.csdn.net/u010013453/article/details/74356293</guid><author>u010013453</author><pubDate>Tue, 04 Jul 2017 20:09:07 +0800</pubDate><description><![CDATA[You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that you need to make up that amount. If that amount of money c]]></description><category></category></item><item><title><![CDATA[Leetcode题解 - 200. Number of Islands]]></title><link>https://blog.csdn.net/u010013453/article/details/73331258</link><guid>https://blog.csdn.net/u010013453/article/details/73331258</guid><author>u010013453</author><pubDate>Fri, 16 Jun 2017 14:38:21 +0800</pubDate><description><![CDATA[Given a 2d grid map of ‘1’s (land) and ‘0’s (water), count the number of islands. An island is surrounded by water and is formed by connecting adjacent lands horizontally or vertically. You may assume]]></description><category></category></item><item><title><![CDATA[Leetcode题解 -  61. Rotate List]]></title><link>https://blog.csdn.net/u010013453/article/details/72861807</link><guid>https://blog.csdn.net/u010013453/article/details/72861807</guid><author>u010013453</author><pubDate>Sun, 04 Jun 2017 21:43:53 +0800</pubDate><description><![CDATA[Given a list, rotate the list to the right by k places, where k is non-negative.
  
  
    For example: 
    Given 1->2->3->4->5->NULL and k = 2, 
    return 4->5->1->2->3->NULL.
  
链接先遍历一次链表找到链表长度，根据要]]></description><category></category></item><item><title><![CDATA[Leetcode题解 - 20. Valid Parentheses]]></title><link>https://blog.csdn.net/u010013453/article/details/72861761</link><guid>https://blog.csdn.net/u010013453/article/details/72861761</guid><author>u010013453</author><pubDate>Sun, 04 Jun 2017 21:39:13 +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 all valid]]></description><category></category></item><item><title><![CDATA[Leetcode题解 -  150. Evaluate Reverse Polish Notation]]></title><link>https://blog.csdn.net/u010013453/article/details/72624065</link><guid>https://blog.csdn.net/u010013453/article/details/72624065</guid><author>u010013453</author><pubDate>Mon, 22 May 2017 11:13:45 +0800</pubDate><description><![CDATA[Evaluate the value of an arithmetic expression in Reverse Polish Notation.
  
  Valid operators are +, -, *, /. Each operand may be an integer or another expression.
  
  Some examples:
  
  
    [“2”,]]></description><category></category></item><item><title><![CDATA[Leetcode题解 -  554. Brick Wall]]></title><link>https://blog.csdn.net/u010013453/article/details/72123795</link><guid>https://blog.csdn.net/u010013453/article/details/72123795</guid><author>u010013453</author><pubDate>Mon, 15 May 2017 11:27:28 +0800</pubDate><description><![CDATA[here is a brick wall in front of you. The wall is rectangular and has several rows of bricks. The bricks have the same height but different width. You want to draw a vertical line from the top to the b]]></description><category></category></item><item><title><![CDATA[Leetcode题解 -  14. Longest Common Prefix]]></title><link>https://blog.csdn.net/u010013453/article/details/71403681</link><guid>https://blog.csdn.net/u010013453/article/details/71403681</guid><author>u010013453</author><pubDate>Mon, 08 May 2017 10:20:02 +0800</pubDate><description><![CDATA[Write a function to find the longest common prefix string amongst an array of strings. 
链接给定的字符串存在一个数组中，将第一个字符串作为参考，把后续的字符串依次与strs[0]进行比较即可，双重循环即可完成。class Solution {
public:
string longestCommonPrefix(]]></description><category></category></item><item><title><![CDATA[Leetcode题解 - 151. Reverse Words in a String]]></title><link>https://blog.csdn.net/u010013453/article/details/71107488</link><guid>https://blog.csdn.net/u010013453/article/details/71107488</guid><author>u010013453</author><pubDate>Wed, 03 May 2017 10:19:33 +0800</pubDate><description><![CDATA[Given an input string, reverse the string word by word. 
  For example, 
  Given s = “the sky is blue”, 
  return “blue is sky the”. 
  Update (2015-02-12): 
  For C programmers: Try to solve it in-pla]]></description><category></category></item><item><title><![CDATA[Leetcode题解 - 22. Generate Parentheses]]></title><link>https://blog.csdn.net/u010013453/article/details/70314221</link><guid>https://blog.csdn.net/u010013453/article/details/70314221</guid><author>u010013453</author><pubDate>Fri, 21 Apr 2017 14:09:53 +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题解 - 89. Gray Code]]></title><link>https://blog.csdn.net/u010013453/article/details/70172859</link><guid>https://blog.csdn.net/u010013453/article/details/70172859</guid><author>u010013453</author><pubDate>Fri, 14 Apr 2017 15:32:21 +0800</pubDate><description><![CDATA[The gray code is a binary numeral system where two successive values differ in only one bit. 
  Given a non-negative integer n representing the total number of bits in the code, print the sequence of g]]></description><category></category></item><item><title><![CDATA[Leetcode题解 - 4. Median of Two Sorted Arrays]]></title><link>https://blog.csdn.net/u010013453/article/details/69944783</link><guid>https://blog.csdn.net/u010013453/article/details/69944783</guid><author>u010013453</author><pubDate>Mon, 10 Apr 2017 11:33:29 +0800</pubDate><description><![CDATA[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 time complexity should be O(log (m+n)). 
  Example 1:
  
  
    nu]]></description><category></category></item><item><title><![CDATA[Leetcode题解 - 55. Jump Game]]></title><link>https://blog.csdn.net/u010013453/article/details/68925698</link><guid>https://blog.csdn.net/u010013453/article/details/68925698</guid><author>u010013453</author><pubDate>Fri, 31 Mar 2017 15:11:53 +0800</pubDate><description><![CDATA[Given an array of non-negative integers, you are initially positioned at the first index of the array.  
  Each element in the array represents your maximum jump length at that position.  
  Determine]]></description><category></category></item><item><title><![CDATA[Leetcode题解 - 445. Add Two Numbers II]]></title><link>https://blog.csdn.net/u010013453/article/details/68925559</link><guid>https://blog.csdn.net/u010013453/article/details/68925559</guid><author>u010013453</author><pubDate>Fri, 31 Mar 2017 15:02:47 +0800</pubDate><description><![CDATA[You are given two non-empty linked lists representing two non-negative integers. The most significant digit comes first and each of their nodes contain a single digit. Add the two numbers and return it]]></description><category></category></item><item><title><![CDATA[Leetcode题解 - 208. Implement Trie (Prefix Tree)]]></title><link>https://blog.csdn.net/u010013453/article/details/68924923</link><guid>https://blog.csdn.net/u010013453/article/details/68924923</guid><author>u010013453</author><pubDate>Fri, 31 Mar 2017 14:32:41 +0800</pubDate><description><![CDATA[Implement a trie with insert, search, and startsWith methods.  
  Note: 
  You may assume that all inputs are consist of lowercase letters a-z. 
戳我Trie即字典树或者前缀树，如给出字符串”abc”,”ab”,”bd”,”dda”，根据该字符串序列构建一棵]]></description><category></category></item><item><title><![CDATA[Leetcode题解 - 387. First Unique Character in a String]]></title><link>https://blog.csdn.net/u010013453/article/details/65630201</link><guid>https://blog.csdn.net/u010013453/article/details/65630201</guid><author>u010013453</author><pubDate>Fri, 24 Mar 2017 14:02:56 +0800</pubDate><description><![CDATA[Given a string, find the first non-repeating character in it and return it’s index. If it doesn’t exist, return -1.  
  Examples:  
  s = “leetcode” 
  return 0. 
  s = “loveleetcode”, 
  return 2.]]></description><category></category></item></channel></rss>