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.
In case you're talking to me, the answer is no. I'm a Computer Science student that actually knwos math
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
you are correct. that part is redundant. also, one can terminate the program after the first text case and not even test for the second
Something like
if (word==true) { ... }
when the variableword
is itself a boolean is redundant - you can just writeif (word) { ... }
Edit: Ignore me if you were questioning the statement "don't use...", didn't take your meaning first at first read
I do agree there is alot wrong with this code. But what do you mean with "don't use the boolean property of the parameter"?
VERY slow? How is this very slow?
This is VERY slow. You do 2 checks, have too many curly braces, don't use the boolean property of the parameter etc.
You don't need the curly braces. Nice solution.
Same goes for mine.