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.
Thanks for the tips guys.
beatifull!
as somone that trying to study programing, i think the probblem with python is that in an excerice like this one, instead of study "how to think"- go over an array with a loop, and think what you need to do to replace somthing, python do it for you
write everything in one line doesnt make the solution better
strip() removes only first space
(WUB)+ replace all inline WUB with one space
is there a place for bisection serach instead search one by one?
finaly i know how to return in one line with if in dart, thanks!
and what if i want to return only if- positive? and lets say do somthing if not?
pay attention to the + in the regex
I was going for short rarther than quick. As long as it passed the tests, it was good enough.
why does it take almost double the time my long solution take? like i defined another class for the players, and did somthing much lesss elegant
sekulski, why is it have greater computational complexity than list of lens?
strip won't delete all the spaces>
no,
sum
just happens to accept a generator. Thatord(c) for c in ...
is a generator expression, and is not a list.ord(c) for c in s.replace(' ', '')- I thought this semantic is for list comprehension, can i use it for every loop?