I believe that in your solution you sort twice, once alphabetically and then by weights?

If so, then this method is not guaranteed to work and relies on the sorting algorithm being implemented as so-called stable sort. Other users encountered similar problem and you can read through the discourse to search for hints, but generally the solution would be to sort only once, by both criteria (weight and alphabetically) at once.

FArekkusu, would you be so kind to give some links to explanations, guidelines, or examples, when raising issues about things which we know how to fix?
Of course, only when such links are available. Not everything is documented sufficiently, but many things is. Let's just use available resources we have, could we?

its difficult to tell exactly whats wrong without seeing your code, but FPE could mean some arithmetic error like division by zero or maybe domain error of some function like log or pow or sqrt.

added one in the kata

I'd suggest adding a test case (both example and fixed) or two using all the digits, for example

`13579`

and`24680`

, or`1234567890`

.Added sample test with symbols # and *

Added sample test with all characters.

Reduced the number of RandomTest testing cycles from 300 to 100.

what does your solution return for n=9?

Added changes.

Renamed Random tests. RandomTests -> MultiTableTests.

MultiTableTests generates a range from 1 to 10.

Random tests generate inputs out of specified range:

Please see if this paragraph helps: https://docs.codewars.com/training/troubleshooting#maxbuffer

Approved.

I believe that in your solution you sort twice, once alphabetically and then by weights?

If so, then this method is not guaranteed to work and relies on the sorting algorithm being implemented as so-called

stablesort. Other users encountered similar problem and you can read through the discourse to search for hints, but generally the solution would be to sort only once, by both criteria (weight and alphabetically) at once.Please see some documentation on how to use test decorators: https://docs.codewars.com/languages/python/authoring#testing-framework

There's also an example test suite: https://docs.codewars.com/languages/python/authoring#example-test-suite

FArekkusu, would you be so kind to give some links to explanations, guidelines, or examples, when raising issues about things which we know how to fix?

Of course, only when such links are available. Not everything is documented sufficiently, but many things is. Let's just use available resources we have, could we?

Your code performs division by 0.

Please see if this paragraph helps: https://docs.codewars.com/training/troubleshooting#timeout

its difficult to tell exactly whats wrong without seeing your code, but FPE could mean some arithmetic error like division by zero or maybe domain error of some function like log or pow or sqrt.

Seeing your code could help to find the problem.

Updated, with minor corrections. Thanks!

## Loading more items...