前段时间用HomeBrew把Cocopods升级到 1.0.0.beta.3,今天在项目中执行 pod update 时提示了错误。
[!] Invalid Podfile file: [!] The specification of link_with in the Podfile is now unsupported, please use target blocks instead..
查找的结果是版本太高,所以需要降低Cocoapods的版本来解决第三方库的兼容问题。继续阅读 »
Question
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 solution.
Example:
Given nums = [2, 7, 11, 15], target = 9,
Because nums[0] + nums[1] = 2 + 7 = 9,
return [0, 1].
UPDATE (2016/2/13):
The return forma继续阅读 »