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.
@zebulan Thanks for taking the time to contribute. Totally agree with all your points. This Kata has indeed become a whimsical foray of sorts. I enjoyed the back and forth of it, and if valid solutions are not incorrectly rejected then no harm done :)
Thanks @matt c for the idea, btw :)
@zebulan
nuclear launch detected. +10 rads. aka I got it using matt c's approach, but it's heavy-handed (don't allow
.sort
in the solution) and starts limiting otherwise potentially valid implementations. will have to compensate in the docs. this Kata will be Fallout-themed before long.the list display case is a toughy to solve otherwise, i think. from what I read online in 27 seconds of looking, list display magic happens at compile-time, so i'd have to find a way to rewrite, recompile, and reload builtins... hmm...
@zebulan
check.
@zebulan
imp.reload is no more
touché! no more
__import__('__builtin__')
and the likeGood idea! Added that test case.
@zebulan, ditto! And, I see your
reload()
and raise you.good catch. try now.
I switched to patching
builtins
forlist.sort
andsorted
, which catches cases likefrom builtins import sorted
@zebulan thx for calling that out. fixed.
Done. iloveawesomerobots is no more.
This comment is hidden because it contains spoiler information about the solution
ok so list.sort will now raise. what else you got?
hah! challenge accepted.
Loading more items...