OpenGenus/cosmos

Add code for Lexicographic rank of a string in any language

Open

#1,152 opened on Oct 11, 2017

View on GitHub
 (4 comments) (0 reactions) (0 assignees)C++ (3,724 forks)batch import
Hacktoberfestadd codenew algorithm

Repository metrics

Stars
 (13,462 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Add the code for Lexicographic rank of a string in any language ( C, C++, Java, Go, Python or any other)

The lexicographic rank of a string is the rank of the string among all permutations of its characters sorted lexicographically.

The code should be placed at code/mathematical-algorithms/lexicographic_string_rank

Note: multiple contributors can work on this issue as it has multiple parts (languages)

Your pull request will be reviewed by maintainers instantly.

For contribution guidelines, see this

If you need any help, let us know.

Contributor guide