Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the...
分类:
其他好文 时间:
2014-12-19 20:45:23
阅读次数:
158
A Famous Stone CollectorTime Limit: 30000/15000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 876Accepted Submission(s...
分类:
其他好文 时间:
2014-12-16 07:40:55
阅读次数:
321
来自:http://blog.csdn.net/tiaotiaoyly/article/details/2087498
1,质量集中在顶点上。n个顶点坐标为(xi,yi),质量为mi,则重心
X = ∑( xi×mi ) / ∑mi
Y = ∑( yi×mi ) / ∑mi
特殊地,若每个点的质量相同,则
X = ∑xi / n
Y = ∑yi / n
...
分类:
其他好文 时间:
2014-12-12 19:06:15
阅读次数:
121
分类:
在不修改原有的类的基础上增加新的方法
一个庞大的类可以分模块开发
一个庞大的类可以由多个人来编写,更有利于团队合作
除有的Person.h和Person.m,新增两个文件
Person+Stone.h
#import "Person.h"
@interface Person (Stone)//Person分类类型 Stone分类名
{
//不能在...
分类:
编程语言 时间:
2014-12-10 16:23:58
阅读次数:
202
using UnityEngine; using System.Collections; public class UIDataHandler : MonoBehaviour { public UIInput nameInput; public UIInput psInput; public Gam...
分类:
其他好文 时间:
2014-12-08 22:49:15
阅读次数:
358
题目
Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the ...
分类:
其他好文 时间:
2014-12-05 17:29:19
阅读次数:
124
从上看到的例子,小人在石头上跑跳直到达到门
我做了以下改进:
1. 模块化:
helper.py 含有基类以及碰撞检测函数man.py 小人door,py 门stone.py 脚踩的石头game.py 主函数,初始化canvas,游戏主循环
2. 修复一个Bug,原先人踩在石头上会掉下来
if btm and falling and self.y == 0 and (co....
分类:
编程语言 时间:
2014-11-29 13:19:22
阅读次数:
407
转自:http://www.jianshu.com/p/b37ee8cea04c1.资源类型GameObject, Transform, Mesh, Texture, Material, Shader, Script和各种其他Assets。2.资源创建方式静态引用,在脚本中加一个public Gam...
分类:
编程语言 时间:
2014-11-29 10:10:11
阅读次数:
272
Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the l...
分类:
其他好文 时间:
2014-11-27 09:14:31
阅读次数:
197
Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the...
分类:
其他好文 时间:
2014-11-26 11:26:18
阅读次数:
252