首先了解一下CGContextRef:An opaque type that represents a Quartz 2D drawing environment.Graphics Context是图形上下文,可以将其理解为一块画布,我们可以在上面进行绘画操作,绘制完成后,将画布放到我们的view中...
分类:
移动开发 时间:
2015-04-08 10:27:06
阅读次数:
204
一道DFS的题目,题意如下:
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent
a number.
An example is the root-to-leaf path 1->2->3 which represents the number 1...
分类:
其他好文 时间:
2015-04-08 09:12:29
阅读次数:
107
题目:
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.
De...
分类:
其他好文 时间:
2015-04-07 19:42:29
阅读次数:
108
??
问题描述:Given
n non-negative integers a1,
a2, ...,
an, where each represents
a pointat coordinate (i, ai).
n vertical lines aredrawn such that the two endpoints of line i is at (i,
ai) and (...
分类:
其他好文 时间:
2015-04-07 11:59:19
阅读次数:
129
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent
a number.
An example is the root-to-leaf path 1->2->3 which represents the number 123.
Find the tota...
分类:
其他好文 时间:
2015-04-07 10:07:07
阅读次数:
94
题目:
Given n non-negative integers a1, a2,
..., an, where each represents a point at coordinate (i, ai). n vertical
lines are drawn such that the two endpoints of line i is at (i, ai) and (i,
...
分类:
其他好文 时间:
2015-04-06 17:17:36
阅读次数:
142
Xiangqi
Problem Description
Xiangqi is one of the most popular two-player board games in China. The game represents a battle between two armies with the goal of capturing the enemy’s “genera...
分类:
其他好文 时间:
2015-04-04 09:11:41
阅读次数:
191
Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of ...
分类:
其他好文 时间:
2015-04-02 09:03:25
阅读次数:
120
题目:leetcode
Jump Game II
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...
分类:
编程语言 时间:
2015-04-01 17:50:59
阅读次数:
200
problem:
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...
分类:
其他好文 时间:
2015-04-01 11:25:02
阅读次数:
110