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.
Alhamdulillah :)
This is a well known problem in Math, I suggest you read literature about it. It's a math heavy task.
@jesimielpogi018 you need an O(n) solution, one that, when given a 100-element array, will do 100 iterations, and not 10000 (O(n^2)). So you can't bruteforce with nested
for
-loops.fr, however take a look at this: https://www.codewars.com/kata/58db9545facc51e3db00000a
They hate yo ass for some reason
thanks i get it now
No probs :)
First of all, I apologise for being late, but thank you.
If a function is memoized, from my understanding, it will help in its next call, because the previous results from the previous call has no reason to be deleted.
take a function
fibonacci(n)
:Hope this helps!
In my world the clock turns in the opposite diretion.
Hi! I have exactly the same problem, and have just posted above. Frustrating! Did you end up figuring it out?
The input type is an array. The array describes the tree as written in the kata's description.
Thanks!
you'll find stuff about knight's tour all over the place on the internet. For more precise stuff, you can search for the name I used in my python solution:
..._DP
I updated the tests in python. Your solution atually times out in some situations x6x at 2,2, apparently)
Sample tests are now also in the full test suite, and I added some random tests.
works fine on my side
Loading more items...