Search found 1 match

by kalgorithmist
Wed Jul 27, 2011 6:39 am
Forum: Volume 9 (900-999)
Topic: 941 - Permutations
Replies: 7
Views: 8351

Re: 941 - Permutations

Hi, why this gives Time Limit Exceeded?

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>

void mySwap (char &a, char &b)
{
char tmp = a;
a = b;
b = tmp;

}

class Permuter
{

public:
Permuter ()
{
this->word_ = "";

}

void setWord (const std::string &word ...

Go to advanced search