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.
This comment is hidden because it contains spoiler information about the solution
You can upvote this kata by choosing
Very
in the satisfaction rating.Fixed.
namespace is not needed and on more complex programs delcaring a golbal namespace can lead to naming conflits.
Five years have passed and have not been fixed.
This comment is hidden because it contains spoiler information about the solution
ah, yes. the most important namespace for multiplication.
Floats are not odd or even because you can always add a zero at the end.
This comment is hidden because it contains spoiler information about the solution
the trick is that even and odd numbers must be integers by definition, float (which is not integer at the same time) can neither be even nor odd
Thanks. Updated.
Issue [C++]: use "std::string" instead of just "string" in your code when declaring parameters for the function, otherwise compile error.
C# tests are missing:
"
using System;
using NUnit.Framework;
"
Hi,
--- C# ---
What is the purpose of "public string ballType { get; set; }" - why is it necessary at all ?
Once I got rid of it and just wrote my field and 2 constructors it worked fine;
However, I would like to know the purpose. Is the above some sort of standard ?
(click "View Solution" to see my code)
Hint: Are you using float values in your formulae ?
Instead of writing 1 or 2 for constants, try using 1.0 or 2.0 (python infers the value as float with no need to do float(x); I do not know which language you are using)
Loading more items...