摘要: 3SumGiven 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:El... 阅读全文
posted @ 2014-07-08 19:38 陆草纯 阅读(4531) 评论(0) 推荐(0) 编辑
摘要: int转string(注:itoa不是标准函数,OJ平台可能不接受)int n = 10;char temp[32];string str; sprintf(temp, "%d", n);str = temp;orstring str = to_string(n);注意:to_string(int ... 阅读全文
posted @ 2014-07-08 11:08 陆草纯 阅读(290) 评论(0) 推荐(0) 编辑