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.
You are returning wrong data type. Columns need be typeof number
Your code passes all the tests. I'm not sure what the issue is.
We can't see your code, so we don't know either.
You've selected the wrong values. Let's take what the first row is supposed to look like:
5 | 5 | 5 | 11 | 1
Those are the correct values that you are supposed to select assuming that the actual values in the
monsters
table look like this:1 | Cyril | 65700 | 37847 | big, smelly
In the correct row: The first
5
in theid
column is there because the value in the column to the right isCyril
andCyril
has 5 characters in it in it.The next
5
in thename
column is there because the value in the column to the right is65700
and65700
has 5 characters in it.The next correct value,
5
in thelegs
column is there because the value in the column to the right is37847
and37847
has 5 characters in it.The next correct value,
11
in thearms
column is there because the value in the column to the right isbig, smelly
andbig, smelly
has 11 characters in it.The next correct value,
1
in thecharacteristics
column is there because the value in the column to the right (This time the columns wrap around, so the value to the right is in theid
column) is1
and1
has 1 character in it.From the description:
Your task is to make a new table where each column should contain the length of the string in the column to its right (last column should contain length of string in the first column)
You are selecting the actual values of the columns, not the length of the string in the column to the right of the current column.
In the 2nd sample test case:
Rhyming is not part of this kata, instead of that idea, the words must have three out of four letters matching.
That won't even work, you're comparing two booleans with
<=
there. Basically, your code returns ``Nice!'`Make sure the string you return is ok, it should be
"Naughty!"
or"Nice!"
.Try changing Node's version.