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.
Done. I initially didn't use
inspect.getsource
, because it doesn't work with functions, defined in terminal (it requires import path or something), but forgot, that codewars imports the function from other file, soinspect.getsource
would work.IMO, using
inspect.getsource
+re.search
(with case-insensitive flag) would be more "in the spirit" of the original task.Since the original JS translation checks for the phrase anywhere within the function (it can be part of the comment / string), while this translation only checks the start of a docstring.
Approved.
Python translation. Please, review and approve.
This comment is hidden because it contains spoiler information about the solution
perhaps the restrictions aren't tight enough
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
resolved
Test case outputs error
(implying x == [196, 0, 0, 52], and y == [15, 0, 0, 183])
However,
whereas
How you get this idea is a something in math or what ?
https://youtu.be/zirpPi7Ntyo?si=VbC5ZlpSZF3ASpZU&t=13
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...