【Transform & Physics】1、Space。Unity定义了Space枚举值,此值如下: 通常通过Space.World、Space.Self来区别一个Vector是按世界坐标系作用还是按本地坐标系作用。参考:file:///D:/Program%20Files%20(x86)/...
分类:
其他好文 时间:
2014-07-03 10:38:28
阅读次数:
182
Blowing up HTML5 video and mapping it into 3D space(将HTML5视频吹散并组成3D效果)最近我研究了HTML 5中的Canvas 和Video 标签,并发现了一些很酷的特性。其中之一就是Canvas.drawImage() api。此为详细介绍。C...
分类:
Web程序 时间:
2014-07-03 00:41:16
阅读次数:
1001
爱钻牛角尖的毛病又来了。仅仅是因为以前的一个c语言free内存报错。 我们知道,malloc分配的内存是从堆里获得的,而堆是由操作系统维护的,也就是说,在没有malloc前,内存空间是不属于该进程空间的,malloc函数务必调用了操作系统的系统函数(参考前边linux内存管理heap篇可知,是br....
分类:
其他好文 时间:
2014-07-02 18:21:10
阅读次数:
217
OracleSharePool内部管理机制SHAREPOOL利用堆(HEAP)的内存管理方式管理,在物理上由多个内存区(EXTENT)组成,内存区又由多个不同大小的CHUNK组成。而CHUNK又有可重用和空闲之分,并且它们分别有LRULIST、FREELIST、RESERVEDLIST串联起来。堆管理SharedPool是利用堆内存管理方..
分类:
数据库 时间:
2014-07-02 16:19:17
阅读次数:
432
The Story:Last week, I found one of our embedded arm linux device ran out of flash space( totally only 128M for apps and OS).After checking for a whil...
分类:
其他好文 时间:
2014-07-02 14:30:13
阅读次数:
317
【题目】
Sort a linked list in O(n log n) time using constant space complexity.
【题意】
排序一个链表,要求时间复杂度O(nlogn),使用常量空间
【思路】
nlogn的复杂度,用归并排序求解...
分类:
其他好文 时间:
2014-07-02 09:25:40
阅读次数:
252
Sort a linked list in O(n log n)
time using constant space complexity.
看到O(n log n)的排序算法,适合单链表的首先想到的就是归并排序
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* Lis...
分类:
其他好文 时间:
2014-07-02 08:47:34
阅读次数:
239
【题目】
Given an input string, reverse the string word by word.
For example,
Given s = "the sky is blue",
return "blue is sky the".
click to show clarification.
Clarification:
What constitutes a word?
A sequence of non-space characters constitutes a word....
分类:
其他好文 时间:
2014-07-02 08:34:34
阅读次数:
170
step1.
下载Acronis Disk Director Suite工具,随便一搜都能下载的到。
step2.
这个软件使用很简单,网上有很多图文教程。扩充盘使用Increase the free space 功能
1 主界面单击Increase the free space -》选中要扩充的磁盘(这里扩充的是c盘)—》NEXT
2 选中被用来补充C盘的容量的磁盘...
多重背包,本题不需要二分优化。相对简单点。因为重复数十分小,小于10;
而增加一个限制每种材料的高度做法,如果使用逆向填表,那么只需要从这个高度往小递归填表就可以了。
还有就是注意要排序,以限制高度为标准从小到大排序,否则答案错误的。
#include
#include
#include
using std::sort;
const int MAX_K = 401;
const in...
分类:
其他好文 时间:
2014-07-01 16:08:42
阅读次数:
213