Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
This comment is hidden because it contains spoiler information about the solution
Love your solution with the identity function, very elegant.
Adding to this: The second element in the tuple is used to solve the ties of the first element. Thus
c.upper()
renders every element a capital letter so sorted seesbBaAa
asBBAAA
. To solve the ties forBB
andAAA
we usec.islower()
to get01
and010
sorted to10
and100
for the ties inside the same letters giving youBbAaa
.You can of course stack more than two criteria in the tuple for additional tie brakers.
Solved it: Apperantly a uniform distribution of password lengths is required.
Testing for password lengths ...
Passwords lengths are not different enough! (6-20 chars)
What?
Funny how this gets best practice upvotes, ugly runtime...
Is it? O(n) versus O(1)? Not?
Beautiful
wow, f-strings seem to be really nice, i like.