6 kyu

Permutation position

138 of 219matt c

Description:

#Permutation position In this kata you will have to permutate through a string of lowercase letters, each permutation will start at a and you must calculate how many iterations it takes to reach the current permutation.

##examples

input: 'a'
result: 1

input: 'c'
result: 3

input: 'z'
result: 26

input: 'foo'
result: 3759

input: 'aba'
result: 27

input: 'abb'
result: 28
Fundamentals

Stats:

CreatedJun 16, 2016
PublishedJun 16, 2016
Warriors Trained867
Total Skips60
Total Code Submissions748
Total Times Completed219
JavaScript Completions78
Python Completions138
Haskell Completions19
Total Stars15
% of votes with a positive feedback rating87% of 72
Total "Very Satisfied" Votes56
Total "Somewhat Satisfied" Votes13
Total "Not Satisfied" Votes3
Total Rank Assessments8
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
7 kyu
Ad
Contributors
  • matt c Avatar
  • suic Avatar
  • Voile Avatar
  • saudiGuy Avatar
Ad