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
Could someone provide a hint on this, considering that one already has the linear time solution?
As a side note, IMHO, if linear time is not enough, I would remove the dynamic programming tag.
Sample Tests expect a
body
key in the returned dict, test suite does not. If the key is included (simply with the input source as value), it fails random tests because those compare dict equality. If not included, sample tests error out.Hi,
The arguments names could be etracted in various ways and:
Cheers
https://www.codewars.com/kata/reviews/64d1721d937446000135ab3b/groups/64dd716e68dd0e00010382a9
Also this kata is a duplicate of https://www.codewars.com/kata/5511b2f550906349a70004e1 with a trivial difference (exponent changed from any integer to factorial).
Isn't linking the GFG post kinda leaked the answer?