<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[chugang1656的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/chugang1656</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; chugang1656]]></copyright><item><title><![CDATA[JavaScript Publish/Subscribe实现]]></title><link>https://blog.youkuaiyun.com/chugang1656/article/details/100757093</link><guid>https://blog.youkuaiyun.com/chugang1656/article/details/100757093</guid><author>chugang1656</author><pubDate>Tue, 15 Aug 2017 11:46:00 +0800</pubDate><description><![CDATA[发布订阅模式，一对多的关系，通过subscribe订阅相关信息，然后在callback中处理
publish发布信息，key与订阅的时候传递的保持一致，info为一个对象，callback中进行相应的处理。
export default class APLNotificationMgr{
	s...]]></description><category></category></item><item><title><![CDATA[Mac下装ProtocolBuffer]]></title><link>https://blog.youkuaiyun.com/chugang1656/article/details/100757092</link><guid>https://blog.youkuaiyun.com/chugang1656/article/details/100757092</guid><author>chugang1656</author><pubDate>Mon, 31 Jul 2017 11:13:00 +0800</pubDate><description><![CDATA[首先下载最新的ProtoculBuffer源码
https://developers.google.com/protocol-buffers/docs/downloads
如果上面的网页打不开，可以去下面的链接下载
http://download.youkuaiyun.com/detail/juanq12...]]></description><category></category></item><item><title><![CDATA[解决NSData转NSString返回nil的问题]]></title><link>https://blog.youkuaiyun.com/chugang1656/article/details/100757091</link><guid>https://blog.youkuaiyun.com/chugang1656/article/details/100757091</guid><author>chugang1656</author><pubDate>Mon, 17 Jul 2017 18:56:00 +0800</pubDate><description><![CDATA[在使用initWithData等方法将NSData转换成NSString时，如果NSData的内容含有非encoding编码的字符，将会返回nil。

如果一个字节小于0x80，那么他就是一个字符；
如果大于C0小于E0，表示2个字节组成的utf8字符（第一个是110开头的，第二个是10开头的...]]></description><category></category></item><item><title><![CDATA[LeetCode解题思路之Intersection of Two Linked Lists]]></title><link>https://blog.youkuaiyun.com/chugang1656/article/details/100757090</link><guid>https://blog.youkuaiyun.com/chugang1656/article/details/100757090</guid><author>chugang1656</author><pubDate>Wed, 28 Jun 2017 17:16:00 +0800</pubDate><description><![CDATA[##问题描述
Write a program to find the node at which the intersection of two singly linked lists begins.
查找交叉链表并得交叉节点，要求时间复杂度o(n)、空间复杂度o(1)
##解题思路
首先计算...]]></description><category></category></item><item><title><![CDATA[LeetCode解题思路之Add Two Numbers II]]></title><link>https://blog.youkuaiyun.com/chugang1656/article/details/100757089</link><guid>https://blog.youkuaiyun.com/chugang1656/article/details/100757089</guid><author>chugang1656</author><pubDate>Fri, 23 Jun 2017 17:24:00 +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 no...]]></description><category></category></item><item><title><![CDATA[LeetCode解题思路之Search a 2D Matrix]]></title><link>https://blog.youkuaiyun.com/chugang1656/article/details/100757088</link><guid>https://blog.youkuaiyun.com/chugang1656/article/details/100757088</guid><author>chugang1656</author><pubDate>Fri, 23 Jun 2017 15:49:00 +0800</pubDate><description><![CDATA[##问题描述
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 ar...]]></description><category></category></item><item><title><![CDATA[LeetCode解题思路之Merge Sorted Array]]></title><link>https://blog.youkuaiyun.com/chugang1656/article/details/100757087</link><guid>https://blog.youkuaiyun.com/chugang1656/article/details/100757087</guid><author>chugang1656</author><pubDate>Fri, 23 Jun 2017 15:33:00 +0800</pubDate><description><![CDATA[##问题描述
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.
Note:
You may assume that nums1 has enough spac...]]></description><category></category></item><item><title><![CDATA[LeetCode解题思路之Rotate Image]]></title><link>https://blog.youkuaiyun.com/chugang1656/article/details/100757086</link><guid>https://blog.youkuaiyun.com/chugang1656/article/details/100757086</guid><author>chugang1656</author><pubDate>Thu, 22 Jun 2017 21:50:00 +0800</pubDate><description><![CDATA[##问题描述
You are given an n x n 2D matrix representing an image.
Rotate the image by 90 degrees (clockwise).
给定一个n*n的二位数组，顺时针转90度
1 2 3 4
5 6 7 8
9 0...]]></description><category></category></item><item><title><![CDATA[微信分享图文解析]]></title><link>https://blog.youkuaiyun.com/chugang1656/article/details/100757085</link><guid>https://blog.youkuaiyun.com/chugang1656/article/details/100757085</guid><author>chugang1656</author><pubDate>Thu, 22 Jun 2017 14:25:00 +0800</pubDate><description><![CDATA[工作中需要识别微信分享的链接中的一些信息显示在app中，效果类似于QQ的效果
当前的显示分为三个部分组成，分别为标题，文章描述以及图片，所以我们需要根据给定的链接将这三个元素提取出来
首先我们在浏览器中打开这个链接，然后按F12并将其中的html内容拷贝出来，发现所有的微信分享的链接都会在指定...]]></description><category></category></item><item><title><![CDATA[LeetCode解题思路之 Add Two Numbers]]></title><link>https://blog.youkuaiyun.com/chugang1656/article/details/100757084</link><guid>https://blog.youkuaiyun.com/chugang1656/article/details/100757084</guid><author>chugang1656</author><pubDate>Wed, 21 Jun 2017 22:05:00 +0800</pubDate><description><![CDATA[##问题描述
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their no...]]></description><category></category></item><item><title><![CDATA[LeetCode解题思路之Two Sum]]></title><link>https://blog.youkuaiyun.com/chugang1656/article/details/100757083</link><guid>https://blog.youkuaiyun.com/chugang1656/article/details/100757083</guid><author>chugang1656</author><pubDate>Wed, 21 Jun 2017 17:25:00 +0800</pubDate><description><![CDATA[##问题描述
Given an array of integers, return indices of the two numbers such that they add up to a specific target.
You may assume that each input wou...]]></description><category></category></item><item><title><![CDATA[LeetCode解题思路之Remove Duplicates from Sorted Array]]></title><link>https://blog.youkuaiyun.com/chugang1656/article/details/100757082</link><guid>https://blog.youkuaiyun.com/chugang1656/article/details/100757082</guid><author>chugang1656</author><pubDate>Wed, 21 Jun 2017 15:06:00 +0800</pubDate><description><![CDATA[##问题描述
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
Do not allocate extr...]]></description><category></category></item><item><title><![CDATA[LeetCode解题思路之Remove Element]]></title><link>https://blog.youkuaiyun.com/chugang1656/article/details/100757081</link><guid>https://blog.youkuaiyun.com/chugang1656/article/details/100757081</guid><author>chugang1656</author><pubDate>Wed, 21 Jun 2017 14:57:00 +0800</pubDate><description><![CDATA[##问题描述
Given an array and a value, remove all instances of that value in place and return the new length.
Do not allocate extra space for another a...]]></description><category></category></item><item><title><![CDATA[LeetCode解题思路之Maximum Distance in Arrays]]></title><link>https://blog.youkuaiyun.com/chugang1656/article/details/100757080</link><guid>https://blog.youkuaiyun.com/chugang1656/article/details/100757080</guid><author>chugang1656</author><pubDate>Wed, 21 Jun 2017 14:36:00 +0800</pubDate><description><![CDATA[##问题描述
Given m arrays, and each array is sorted in ascending order. Now you can pick up two integers from two different arrays (each array picks on...]]></description><category></category></item><item><title><![CDATA[React Native No bundle URL present]]></title><link>https://blog.youkuaiyun.com/chugang1656/article/details/100757079</link><guid>https://blog.youkuaiyun.com/chugang1656/article/details/100757079</guid><author>chugang1656</author><pubDate>Fri, 16 Jun 2017 11:51:00 +0800</pubDate><description><![CDATA[解决方案是打开AppDelegate.m文件，并将 
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil]; 
改为...]]></description><category></category></item><item><title><![CDATA[ubuntu SublimeText3+SublimeClang]]></title><link>https://blog.youkuaiyun.com/chugang1656/article/details/100757078</link><guid>https://blog.youkuaiyun.com/chugang1656/article/details/100757078</guid><author>chugang1656</author><pubDate>Tue, 29 Mar 2016 19:12:00 +0800</pubDate><description><![CDATA[原文引自 http://blog.youkuaiyun.com/cywosp/article/details/32721011 
SublimeText3的安装以及PackageControl的安装就不做介绍，网上有很多相关资料 
主要记录手动安装SublimeClang的过程 
以下是通过git安装Su...]]></description><category></category></item></channel></rss>