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.
can't read(
Thank you for the clarification! Done
Thanks for the detailed explanaition!
Smth similar to https://www.codewars.com/kata/584703d76f6cf6ffc6000275, as far as I understand now. Math makes things easier
Testing for [['XXX', 5], ['', 1], ['XXXXX', 3], ['XX', 1], ['', 9], ['XXXXXXX', 10], ['X', 9], ['XXXXXXXXXX', 5], ['XXXXX', 7], ['XXXXXXXXXX', 10], ['XXXXXXX', 0], ['XXXX', 8]] and 2
It should work for random inputs too: 'Game On' should equal [2]
i need to find 2 chairs. But there are 2 free chairs in the very first room => i don't need the chairs => Game On, right? But why [2]?
Testing for [['XX', 8], ['XXXXXXXX', 6], ['XXXXXXX', 10], ['XX', 4], ['XXXXXXXX', 10], ['XXXXXX', 3], ['XXX', 6], ['XXXXXXXXX', 9]] and 4
It should work for random inputs too: 'Game On' should equal [4]
same issue. There are 6 free chairs out of 8 in the room 0. Why do i need to find extra [4]?
incredible!
could you please explain the magic numbers? (2, 6, [0, 1, 2, 2, 2, 2])
and how is it even possible to come up with such a solution!?
Thank you! Done
i pass all tests except starting with 'x'. could you please clarify on the leading 0's rule? Input 'xx': 3 should be close to 2.5 with absolute or relative margin of 0.01 - don't understand how it's possible
thanks! Now got it. Need to distribute ALL the numbers in a certain order + the given list is unordered. The description is not that accurate(
and how this can be True? test.assert_equals(consecutive_nums([6, 6, 6, 9, 7, 8, 7, 5, 8, 5, 7, 8], 4), True)
is it True? Description, Examples, consecutive_nums([1, 2, 3, 6, 2, 3, 4, 7, 8], 3) ➞ True, # [1, 2, 3], [2, 3, 4], [6, 7, 8]
beauty!
12 Best practices and 18 Clever votes
don't you think this is a typewriter operator, not a programmer, solution?
ok, thank you!
just found this as well - https://www.codewars.com/kumite/59b634e38bcb77b5b4000079?sel=5d401db65ce635000eddf500
don't understand what's wrong with the index()
Hi, i had a fast kata solution not taking into account that x can have more than just 3 possible different values. And in your solution i found kwargs approach. But still, the are abc's later in your code. I used kwargs to adjust my solution. Could you please evaluate it? In terms of universality, time and memory complexity or any other aspect.
Loading more items...