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.
If the len(r)%3 == 0 then why you should add 30 more minutes ? The job is basically done. No rest need.
I have solved a 4kyu kata with fib via "Matrix Exponentiation" method. If you require this method or even "Fast Doubling" method it should be a higher lvl kyu for sure.
I have a time failure. My time complexity is O(m). Is it supposed to perform even better ?
This comment is hidden because it contains spoiler information about the solution
Hi @donaldsebleung
I appreciate your help. I ve done some discussions in the forum but nobody replied. Can you send me a simple example for a kata ?. How a complete kata should look like
Guys I need someones help. Im trying to publish my own kata. The task is to create a recursion function which does something but the problem is that I dont know how to stop cheaters from using while or for loops.
Anyone knows what to do ?
Thanks
Guys I need someones help. Im trying to publish my own kata. The task is to create a recursion function which does something but the problem is that I dont know how to stop cheaters by using for loops or while.
Anyone knows what to do ?
Thanks
@g964
I have exactly the same error. When I decompose a number n into its prime factors I should take the biggest powers of its prime and then dived by the next prime and so on. In this case the biggest power is of 2 is 31. I can say it differently. The number 3^10 * 5^6 * 7^3 * 11^2 * 13 * 19 * 23 is diveded by 2 (9 more times), so I cant move on to the next prime (3) till I end the devision by 2.
Thanks for your time.
My code works fine in Pycharm, but here I got a ValueError:
Traceback (most recent call last):
File "main.py", line 25, in
test.assert_equals(solve_eq([[4, -3, 1, -10], [2, 1, 3, 0], [-1, 2, -5, 17]]), [1, 4, -2])
File "/runner/frameworks/python/cw-2.py", line 34, in assert_equals
expect(actual == expected, message, allow_raise)
File "/runner/frameworks/python/cw-2.py", line 18, in expect
if passed:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
Anyone can help ? Thanks
the 'else' statment is useless. Type just 'return Balance', because there isnt other case.