自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 JavaScript Publish/Subscribe实现

发布订阅模式,一对多的关系,通过subscribe订阅相关信息,然后在callback中处理publish发布信息,key与订阅的时候传递的保持一致,info为一个对象,callback中进行相应的处理。export default class APLNotificationMgr{ s...

2017-08-15 11:46:00 592

转载 Mac下装ProtocolBuffer

首先下载最新的ProtoculBuffer源码https://developers.google.com/protocol-buffers/docs/downloads如果上面的网页打不开,可以去下面的链接下载http://download.csdn.net/detail/juanq12...

2017-07-31 11:13:00 188

转载 解决NSData转NSString返回nil的问题

在使用initWithData等方法将NSData转换成NSString时,如果NSData的内容含有非encoding编码的字符,将会返回nil。如果一个字节小于0x80,那么他就是一个字符;如果大于C0小于E0,表示2个字节组成的utf8字符(第一个是110开头的,第二个是10开头的...

2017-07-17 18:56:00 283

转载 LeetCode解题思路之Intersection of Two Linked Lists

##问题描述Write a program to find the node at which the intersection of two singly linked lists begins.查找交叉链表并得交叉节点,要求时间复杂度o(n)、空间复杂度o(1)##解题思路首先计算...

2017-06-28 17:16:00 141

转载 LeetCode解题思路之Add Two Numbers II

##问题描述You are given two non-empty linked lists representing two non-negative integers. The most significant digit comes first and each of their no...

2017-06-23 17:24:00 144

转载 LeetCode解题思路之Search a 2D Matrix

##问题描述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...

2017-06-23 15:49:00 113

转载 LeetCode解题思路之Merge Sorted Array

##问题描述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...

2017-06-23 15:33:00 96

转载 LeetCode解题思路之Rotate Image

##问题描述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 45 6 7 89 0...

2017-06-22 21:50:00 163

转载 微信分享图文解析

工作中需要识别微信分享的链接中的一些信息显示在app中,效果类似于QQ的效果当前的显示分为三个部分组成,分别为标题,文章描述以及图片,所以我们需要根据给定的链接将这三个元素提取出来首先我们在浏览器中打开这个链接,然后按F12并将其中的html内容拷贝出来,发现所有的微信分享的链接都会在指定...

2017-06-22 14:25:00 362

转载 LeetCode解题思路之 Add Two Numbers

##问题描述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...

2017-06-21 22:05:00 115

转载 LeetCode解题思路之Two Sum

##问题描述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...

2017-06-21 17:25:00 159

转载 LeetCode解题思路之Remove Duplicates from Sorted Array

##问题描述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...

2017-06-21 15:06:00 102

转载 LeetCode解题思路之Remove Element

##问题描述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...

2017-06-21 14:57:00 90

转载 LeetCode解题思路之Maximum Distance in Arrays

##问题描述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...

2017-06-21 14:36:00 283

转载 React Native No bundle URL present

解决方案是打开AppDelegate.m文件,并将 jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil]; 改为...

2017-06-16 11:51:00 121

转载 ubuntu SublimeText3+SublimeClang

原文引自 http://blog.csdn.net/cywosp/article/details/32721011 SublimeText3的安装以及PackageControl的安装就不做介绍,网上有很多相关资料 主要记录手动安装SublimeClang的过程 以下是通过git安装Su...

2016-03-29 19:12:00 117

空空如也

空空如也

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

TA关注的人

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