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.
It's supposed to be easy
It's too easy
thank you very much i understand now.
The index starts at 0. I used the modulo % to add 2 to the power of 0. This = 2 and also = Even.
no need for anything else as the remander and only have aone result. That is = 1 and is Odd.
I suck at explaining and doing math so my appoligies in advanced for the crude explanation. However that is how I got passed this Kata.
I also tried to explain without giving the whole thing away.
It's not
2 == 0
, there is something else before it. You should try following some tutorial to get familiar with fundamentals of the language before solving katas.This comment is hidden because it contains spoiler information about the solution
i will leave this here: the "" is where you write your code not some 'string' thing, i got very confused tbh.
This comment is hidden because it contains spoiler information about the solution
(Java) fixed at some point
wrong the first time because of identity. OH MY GOD
Thanks! I tried just returning the string , and it worked. I guess i am used to printing strings not returning them.
you are trying to print the input
instead you need to return a value
N0pE. It has been solved by over 140K coders in your language alone.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...