首页
Python
Java
IOS
Andorid
NodeJS
JavaScript
HTML5
【
threeSum_0
】的更多相关文章
threeSum_0
//找出数组中三个数相加为0,返回存在的组数 //输入指正*A,长度为size,返回*B和长度num int threeSum_0(int *A,int size,int *B,int &num) { vector<int> temp(A, A + size); //使用vector操作数据 sort(temp.begin(),temp.end());//sort //夹逼 auto last = temp.end(); ];//p为临时数组,大小自己设置 ); a++){ auto…