User Profile

Collapse

Profile Sidebar

Collapse
gieforce
gieforce
Last Activity: Jun 15 '21, 07:48 AM
Joined: Jun 15 '21
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • gieforce
    replied to Permutation String
    Code:
    def lexico_permute_string(s):
        ''' Generate all permutations in lexicographic order of string `s`
     
            This algorithm, due to Narayana Pandita, is from
            https://en.wikipedia.org/wiki/Permutation#Generation_in_lexicographic_order
     
            To produce the next permutation in lexicographic order of sequence `a`
     
            1. Find the largest index j such that a[j] < a[j + 1]. If
    ...
    See more | Go to post

    Leave a comment:


  • gieforce
    started a topic Permutation String

    Permutation String

    Hi everyone... Can someone help me?

    Code:
    def lexico_permute_string(s):
        ''' Generate all permutations in lexicographic order of string `s`
    
            This algorithm, due to Narayana Pandita, is from
            https://en.wikipedia.org/wiki/Permutation#Generation_in_lexicographic_order
    
            To produce the next permutation in lexicographic order of sequence `a`
    
            1. Find the
    ...
    See more | Go to post
No activity results to display
Show More
Working...