Search found 1 match

by acm4fun
Sat Jan 20, 2007 9:28 am
Forum: Volume 1 (100-199)
Topic: 195 - Anagram
Replies: 242
Views: 58245

195 - TLE??

I got TLE in anagram...

Here is my solution (in C++):
1) use a vector to store all characters of string input,
2) sort the character using sort()
3)

do {

// form a string from characters
// if the string is not found in a vector of "appeared string"
// print it out, store the string in ...

Go to advanced search