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.
my pleasure.
if the test case is: [1,-1,-1,-1,2,-2,2],
it should be false,
but your answer will be true.
haha
almost the same with mine lol.
the \B!
i like the solution, so after i saw this, i try again. fortunately, i complete too!
inspire me a lot!
so good!
damn good!
it doesn't need to be converted.
because strings also have the attributes length and index.
nice...
doesn't need s.length?l+"\n":l,
just l+"\n"
learn a lot! thanks!
if the test case is [ ' ', ' ', '', 'a', ' ', ' ' ], this solution will return '' before return 'a'. and it will be wrong.
because the kata consider ' ' and '' as the same.
very clever only count left and top!
Loading more items...