Code Coach Word Rank challenge | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Code Coach Word Rank challenge

I'm trying to solve the word rank problem in Code Coach where you try to find the alphabetical rank of a string among all the permutations of its letters. I know that there's the itertools library and it does work for all the cases when I do it with that but I wanted to challenge myself so I tried to implement the permutation calculation and it's working for all except for one of the locked test cases so I can't see what kind of possible entry that I'm missing. I attached the code that works for everything I try but is there a particular case that I'm missing? https://code.sololearn.com/cU12R5Q8un7G/?ref=app

17th May 2020, 9:47 PM
Pel
Pel - avatar
1 Answer
0
I hope I can help you but this code couch is for pro members 😭😭😭
19th May 2020, 4:26 AM
ycsvenom
ycsvenom - avatar