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.
well, I should've read the description better
Ok, so how about not allowing
return
? Wouldn't that guarantee that the function can be turned into a one-liner?I guess it depends on your definition of a one-liner. But I think that'll accomplish what you are looking for.
Because "a"/"an" is determined by the sound of the word that follows.
For example, you would say "an honest man" since the word "honest" sounds like "On-est". And you would say "a unicorn" because "unicorn" sounds like "Yu-nick-orn". "One" sounds like "Won", so you use "a" before a consonent sound.
Just being picky here, but the title should be "Are You a One-Liner?"
Also, I know I said this already...ahhhhh I wish I could format the one-liner answer to multi-line. Just so it's easier to read.
The answer is: "it depends". Sometimes I'll end up hitting 0 ducks with a 0.99 aim. Please make it clear that you're looking for the average case or the expected value.
lodash is pretty damn fast, faster than its native equivalent
what?
we can use lodash?
omg
hmmm...
so, could technically anything be
one line
?Just run code through a minifier?
This comment is hidden because it contains spoiler information about the solution
This sounds like there should only be one 'B' in the 2nd string, but that's not true according to the test cases.
It also looks like if you have at least one fridge with a pillow on it, the function should return true. That's not clear from the description.
yup, that's what happened, it might be me though
I opened the [Solutions] tab and it says "Since you have not yet solved this kata we have hidden the solutions from you." Yet, the button at the top right corner area of the page, left of the button that says [Next Kata] currently says [Train Again]. So it thinks that I solved it but it also thinks I haven't solved it...
so it doesn't look like the submit button does anything
I'm not sure how that's 29 characters. I counted 82 characters.
Add the actual code length limit to the description. When the code length is too long, print the length of the failed code so the user knows how much shorter it needs to be.
Needs more examples, definitely not 5kyu.