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.
we are supposed to fix the code!!! NOT write a new one....
duplicate and almost positive my logic was incorrect but i still passed
Duplicate.
Random tests added
Random tests added
Random tests added
Fixed
"if you don't say it, they cannot learn" ;)
Especially on white katas, so. ;)
Well, this is a white kata...
Bad, bad, bad... This is very bad!!
Upvoting a O(n) solution while a simple constant time one exists! This is bad! (And I talk about the people upvoting the solution!)
It'll return false, as it wouldn't be a valid tail:
make sure that the second argument (tail), is the same as the last letter of the first argument (body)
What if tail.length > 1?
You need a lot more test cases
This comment is hidden because it contains spoiler information about the solution
as donald says. needs more than the 2 test cases from the description.
Loading more items...