字符串:String都是用String来表示,都是值类型,在传递过程中都会进行拷贝。计算字符数量As3:str.lengthSwift:countElements(str)数组:ArrayAs3:存数任意数据var arr:Array=new Array();var vec:Vector.=new ...
分类:
其他好文 时间:
2014-06-19 06:47:35
阅读次数:
281
循环有序 一共有以下两种情况 第一种 / / // / / 条件:(A[mid] >= A[low]) ,low~mid 二分,mid~high 递归第二种 / / / / / / 条件:(A[mid] A[mid])12 ...
分类:
其他好文 时间:
2014-06-19 06:46:36
阅读次数:
303
原因:在编辑php时添加的“–with-mcrypt”选项造成。解决方法:1、如果不需要mcrypt,那么编辑php时去掉该选项,然后再make、make install。2、如果需要mcrypt,那么需要安装libltdllibltdl在libmcrypt软件包中就有,具体过程:#cd /soft...
分类:
Web程序 时间:
2014-06-18 23:29:26
阅读次数:
252
题目
Given an array and a value, remove all instances of that value in place and return the new length.
The order of elements can be changed. It doesn't matter what you leave beyond the new ...
分类:
其他好文 时间:
2014-06-16 23:07:18
阅读次数:
188
题目
Given a string containing just the characters '(' and ')',
find the length of the longest valid (well-formed) parentheses substring.
For "(()", the longest valid parentheses substring...
分类:
其他好文 时间:
2014-06-16 22:41:41
阅读次数:
267
XMLHttpRequest cannot load file~~~~~~~Origin 'null' is therefore not allowed access
最近在做框架的时候,需要加载.html文件和.json文件的时候出现了一下一个错误...
分类:
数据库 时间:
2014-06-16 20:26:18
阅读次数:
266
题目
Divide two integers without using multiplication, division and mod operator.
方法
将除数倍加,直到大于被除数。
public int divide(int dividend, int divisor) {
int flag = 0;
if...
分类:
其他好文 时间:
2014-06-16 19:08:08
阅读次数:
200
Perl数组的声明方式
Perl使用"@"符号声明一个数组:@array;
使用"()"或"qw()"声明数组中元素;
一个完整的声明方式为:
@array = (12,"123","abc",$var);......方法一
或者
@array = qw(12 123 abc); ............方法二
或者
@array = (1..10).................
分类:
其他好文 时间:
2014-06-16 18:50:39
阅读次数:
182
题目
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.
If such arrangement is not possible, it must rearrange it as the low...
分类:
其他好文 时间:
2014-06-16 18:48:33
阅读次数:
170
阵列处理机:
通过重复设置大量相同的处理单元PE(Processing Element),将它们按一定方式互连成阵列,在单一控制部件CU(Control Unit)控制下,对各自所分配的不同数据并行执行同一组指令规定的操作。是操作级并行的SIMD计算机(SIMD指的是单指令流多数据流,是一种实现数据级并行的技术)。
阵列处理机的构形:
分布式存储器的阵列处理机构形集中式共...
分类:
其他好文 时间:
2014-06-14 15:05:57
阅读次数:
308