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.
И что же значит null/undefined? Может стоит описать, что мы делаем в таком случае? Так, на всякий случай
This comment is hidden because it contains spoiler information about the solution
not working i test my code in irb console it work correctly but my code is not read as it is.
The problem is in your code, yes. Your loop is wrong. Not a kata issue.
This comment is hidden because it contains spoiler information about the solution
Because it passes the single sample test and fails another. Read this before creating a kata issue: https://docs.codewars.com/training/troubleshooting
Also read the error messages, they give you a hint about what's wrong with your code:
This comment is hidden because it contains spoiler information about the solution
Approved
The first solution works, and your current solution also works. Closing. Next time post the code following these instructions: https://docs.codewars.com/training/troubleshooting/#post-discourse
Java. I've made exactly the same as the first solution and it returns me some error.... '!=' invalid operator????
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
the length of the array is provided to you by the second parameter, use it. your method for computing the length of an array does not work when they are passed in parameter.
Tell me a solution if I need to return a quantity not true, but false.
Becuase it test case present not bool values. Try this code
sum([True, None])
and you will getTypeError: unsupported operand type(s) for +: 'int' and 'NoneType'
Loading more items...