Search:

Type: Posts; User: Samaras

Search: Search took 0.08 seconds.

  1. Replies
    11
    Views
    9,682

    Re: permutations of a string using iteration

    However he stated that he wants no recursive method :)
  2. Replies
    11
    Views
    9,682

    Re: permutations of a string using iteration

    And that's better than the iterative one i provided.If you consider the complexity of what i wrote ,you will be dissapointed.
  3. Replies
    11
    Views
    9,682

    Re: permutations of a string using iteration

    Ok,so i thought that if we let the letters of the words to be different among them,then we have to output n! permutations,where n is the number of the word's letters.So i also saw that given a string...
  4. Replies
    11
    Views
    9,682

    Re: permutations of a string using iteration

    So the formula was n! where n is the number of the letters of the word.So you have to output that many words.As for what should be changed,still thinking of it :)
  5. Replies
    11
    Views
    9,682

    Re: permutations of a string using iteration

    Actually can you provide a small example.For example the word "Sam" what permutations does it have?I remember that the number of them is 2³,but i am not sure i know what the goal is.Sorry for my...
  6. Replies
    11
    Views
    9,682

    Re: permutations of a string using iteration

    Could you please your code in here enter your code in order to be more clear to everybody? :)

    in order to work write code instead of key
Results 1 to 6 of 6