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
Build a 1000000-vector of pointers to "Keep at it until you get it" and "Great, now move on to tricks" and index into it with [n].
Cute.
Inserting at 0 is not very efficient as it copies the whole string every time. It is better to simply push (to a Vec for example) and reverse everything at the end.
I like cider. :)
You should have replaced $emp_stamp$ with something that's not straight out of PostgreSQL documentation.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Other answers used tuples
(your_type, opponent_type)
as keys to the dict instead of plain strings.Limiting the list of numbers to (length list) is unnecesary and requires an additional traversal of the list just to know the length. If you write
[1..]
Haskell is clever enough to generate the list on demand, and zip will stop as soon as one of the lists is exhausted (a property that greatly simplifies its use in Haskell).Whenever you have the form
if (condition) then True else False
, it is an anti-pattern. You should simply have your function= condition
, as the condition is always equal to either expression it will resolve to.Why use the locals?
Absolutely unreadable. I like it!
I like that kind of challenge!
Poor form, utterly antipythonic. Using a lambda saves you one line at the expense
of rendering the code not only very hard to read but way past the 79 character limit
in PEP8 dictated by Guido van Rossum himself.
Loading more items...