Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

/prog/ challenge

Name: Anonymous 2011-06-26 15:10

The Anus operation is defined as follows:


public static string Anus(string input, int repetitions)
{
    Random rand = new Random();
    string result = input;
    while(repetitions --> 0)
    {
        result = result.Insert(rand.Next(0, result.Length-1), input);
    }
    return result;
}


Little Ive was playing with his Anus and discovered that, when he knows the output string and the number of repetitions, he can determine the original string. Then The Suss joined Ive and told him that his method, written in LISP, was faster and that Ive was a faggot for using brute force. What method did Ive discover? What was The Suss's method?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List