1. 头文件#include2. 数组习惯用法vector iVec(10);//定义10个整数iVec[0] = 10;//第一个元素赋值为10vector iVec(10, -1);// 定义10个整数,每个整数被初始化为-1int ia[ 6 ] = { -2, -1, 0, 1, 2, 10... Read More
posted @ 2015-04-14 18:03
yiyi_xuechen
Views(145)
Comments(0)
Diggs(0)
问题描述Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the tw... Read More
posted @ 2015-04-14 16:41
yiyi_xuechen
Views(120)
Comments(0)
Diggs(0)