加载中
JavaScript Publish/Subscribe实现

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

2017/08/15 11:46
6
Mac下装ProtocolBuffer

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

2017/07/31 11:13
9
解决NSData转NSString返回nil的问题

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

2017/07/17 18:56
5
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
2
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 nodes contain a single digit...

2017/06/23 17:24
5
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 are sorted from left to righ...

2017/06/23 15:49
4
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 space (size that is greater or...

2017/06/23 15:33
5
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 4 5 6 7 8 9 0 1 2 3 4 5 ...

2017/06/22 21:50
13
微信分享图文解析

工作中需要识别微信分享的链接中的一些信息显示在app中,效果类似于QQ的效果 当前的显示分为三个部分组成,分别为标题,文章描述以及图片,所以我们需要根据给定的链接将这三个元素提取出来 ...

2017/06/22 14:25
24
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 nodes contain a single digit...

2017/06/21 22:05
5
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 would have exactly one soluti...

2017/06/21 17:25
1
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 extra space for another array,...

2017/06/21 15:06
3
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 array, you must do this in ...

2017/06/21 14:57
5
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 one) and calculate the dista...

2017/06/21 14:36
13
React Native No bundle URL present

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

2017/06/16 11:51
27
ubuntu SublimeText3+SublimeClang

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

2016/03/29 19:12
31

没有更多内容

加载失败,请刷新页面

返回顶部
顶部