Face3对象的构造函数.用来在四维空间内通过参数a,b,c,d, normal, color, materialIndex创建一个四角面对象.Face4对象的功能函数采用
定义构造的函数原型对象来实现.
NOTE:Face4方法已经删除,使用Face3替代,这里保留为了向下兼容.
用法: var a=0,b=1,c=2,d=3;var normal = new THREE.Vector3( 0, 1, 0 ); var color = new THREE.Color( 0xffaa00 ); va...
分类:
Web程序 时间:
2014-11-25 18:36:14
阅读次数:
272
Single Number IIGiven an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a lin...
分类:
其他好文 时间:
2014-11-25 16:19:11
阅读次数:
142
Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or equal...
分类:
其他好文 时间:
2014-11-25 16:00:36
阅读次数:
165
Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime complexity...
分类:
其他好文 时间:
2014-11-25 14:21:59
阅读次数:
183
Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a linear runtime comp...
分类:
其他好文 时间:
2014-11-25 14:14:58
阅读次数:
149
Given an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:Elemen...
分类:
其他好文 时间:
2014-11-25 12:21:50
阅读次数:
176
设计过程分为三个阶段
Divide: 整个问题划分为多个子问题 T(n)=D(n)
Conquer:求解各子问题(递归调用正设计的算法) T(n)=aT(n/b)
Combine:合并子问题的解, 形成原始问题的解T(n)=C(n)
Note: 将规模为n的问题划分为a个子问题,每个问题的大小为n/b。(b可能不等于a!)
时间复...
分类:
编程语言 时间:
2014-11-25 10:46:48
阅读次数:
222
/**
?*
?*?@brief?Codeforces?Round?#278?(Div.?2)?b
?*?@file?b.c
?*?@author?mianma
?*?@created?2014/11/24?17:52
?*?@edited??2014/11/18?17:52
?*?@type?brute
?*?
?*?@note...
分类:
其他好文 时间:
2014-11-24 22:49:58
阅读次数:
279
Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega...
分类:
其他好文 时间:
2014-11-24 22:22:57
阅读次数:
218
Given a string s consists of upper/lower-case alphabets and empty space characters '
', return the length of last word in the string.
If the last word does not exist, return 0.
Note: A word is...
分类:
其他好文 时间:
2014-11-24 19:21:31
阅读次数:
162