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.
Sorry. I have no theories.
But you have Example Tests source code, so if I was you I would be looking to debug that in some more detail. For example...
...to see what that
got
really is. I know you say you printed aB
but maybe you are fooling yourself and it is really 'B\n' or a 'B ', or maybe you arrived ar the correct answer 'B' but forgot to return it from the function?The bottom line is 43 other people passed this OK that points to the problem being at your end somehow.
Longest spaghetti: B is length 11
B
(This is a console.log of my answer and just to make sure I did String(myAnswer))
✘ Value is not what was expected
Completed in 2ms
ex2
Log
AAAAAAAAA
_______A__CCC
B C A C
B___C__A____C
B C C
B___CCCCCCCCC
Longest spaghetti: C is length 18
(This is a console.log of my answer and just to make sure I did String(myAnswer)) C
Which test fails? What is the message?
Hi my answer is coming out correct with (according to the example tests) 'B' and then 'C' but it is saying Not the expected results. Any theories?
This comment is hidden because it contains spoiler information about the solution