Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren0
Preventing of Execution Timed Out
I'm trying to solve solution "Word Rank". All algorithms work correctly, but if given word has more than 8 letters it terminated in 4-5 seconds with Execution Timed Out. How to prevent it?
1 Antwort
+ 1
At last I have done a new solution based on your suggestion: calculate rank by the permutation formula, not by generating the full list of it.
https://code.sololearn.com/cZZ62sGhD9ML/?ref=app