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.
try type to your console this code: "typeof NaN"
It's output [1] in my terminal
Ruby update, fix description and initial solution: https://www.codewars.com/kumite/64145735b6cfb8003e95f556?sel=64145735b6cfb8003e95f556
This comment is hidden because it contains spoiler information about the solution
approved
COBOL translation (author is inactive).
This kata should not be tagged as OOP.
Your preloaded code in the terminal does not declare the variables 'a' and 'b' when the method is defined.
Done
Fixed
Not an issue
Question is confusing. It says to create a count for each number 1-1000 that can be divided by the numbers 1-25, not say how many times 1000 can be divided by the numbers 1-25, which is what provides the final answer!
I like how this kata can be solved by just returning the result, instead of computing it.
Every now & then similar situation happen in real code: You need to return something that is expensive to compute but doesn't change. In that case it's often worth pre-computing the result instead of re-computing it over and over — especially if the value is needed very often.
However, mind you that returning (for example) a constant may not be particularly intention revealing (e.g. in this case).
You probably just need to replace
puts h
withh
. The return value of puts is nil.This comment is hidden because it contains spoiler information about the solution
Loading more items...