转自:http://www.justsoftwaresolutions.co.uk/threading/multithreading-in-c++0x-part-3.html是个just的c++库。和c11很像。用成员函数来作线程函数,需要传入额外的对象值。如果需要传入参数,接在头两个参数后面。用引...
分类:
编程语言 时间:
2014-05-27 00:09:06
阅读次数:
335
The most known area of theJordan 6 Carminemay
be the two-finger pull-up tongue and also the button lower shroud that hides top
of the a part of its la...
分类:
其他好文 时间:
2014-05-26 21:03:46
阅读次数:
333
不知道怎么获得RSA公钥和私钥的先看我之前这篇
http://www.cnblogs.com/kennyhr/p/3746048.html不清楚RSA算法的推荐看阮老师的http://www.ruanyifeng.com/blog/2013/06/rsa_algorithm_part_one.htm...
分类:
Web程序 时间:
2014-05-26 15:47:28
阅读次数:
245
Reverse Words in a String反转一个字符串垃圾方法:#include
#include class Solution {public: void reverseWords(string &s) {
istringstream is(s); st...
分类:
其他好文 时间:
2014-05-26 13:39:16
阅读次数:
271
这种题都采用倒序的方式吧,从大到小添加。要注意的是一些小细节:比如for(int i = m+n-1;
i >=0; i--){}, 在for语句里面已经有i--了,循环里面就不需要再写一个i--了 1 public class Solution { 2
public void merge(...
分类:
其他好文 时间:
2014-05-26 12:14:48
阅读次数:
227
DoublesTime Limit: 1000MSMemory Limit:
10000KTotal Submissions: 18824Accepted: 10846DescriptionAs part of an ari...
分类:
其他好文 时间:
2014-05-26 06:25:58
阅读次数:
184
Problem Description
Today is Yukari's n-th birthday. Ran and Chen hold a celebration party for her. Now comes the most important part, birthday cake! But it's a big challenge for them to place n ca...
分类:
其他好文 时间:
2014-05-26 04:38:35
阅读次数:
239
【题目】
The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.
Given an integer n, return all distinct solutions to the n-queens puzzle.
Each solution contains a distinct board configuratio...
分类:
其他好文 时间:
2014-05-24 17:12:32
阅读次数:
237
I believe the fractional reserve gold system
has seen more stress and was probably in good part responsible for cementing the
bottom in gold around $1...
分类:
其他好文 时间:
2014-05-24 09:13:30
阅读次数:
254
这几个题很典型也是国外一些知名公司经常会问到的题
3Sum:
排序,避免重复,时间复杂度O(n^2)
class Solution {
public:
vector > threeSum(vector &num) {
int len=num.size();
sort(num.begin(),num.begin()+len);...
分类:
其他好文 时间:
2014-05-22 17:25:02
阅读次数:
259