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.
I found that depending on your solution, submitting multiple times can change whether or not you pass the test.
ORDER BY start of interval ASC
I marked this as spoiler
This comment is hidden because it contains spoiler information about the solution
In the
Another static test
:Shouldn't it be
Monday
?muchachos consejos para aprender y memorizar metodos de javascript para poder mejorar la logica
Can a single word match more than one pattern?
For example, "The quicklazyexample fox jumps over the dog." if "quicklazyexample" happens to be a valid word.
If so, does it count as the relevant pattern pairs occurring in a sentence?
Is there an implied ordering within the pair (pattern1, pattern2)?
i.e. why does the example consider (lazy, quick) as a pair but not (quick, lazy)?
Sample tests already have them, which is why I discovered this.
All above issues are valid and I would like to add that regardsless whether we need to count occurences of patterns or number of sentences with occurences of patterns, there should be fixed and random tests with multiple matches of patterns within a single sentence.
This sentence is outright wrong: the kata never requires us to count the number of occurrences of each pattern. We only need to count the number of sentences which a pattern occur.
The description does not rule out pairs of patterns of the same pattern (
(a, a)
).It doesn't mention which pair should be selected either: when pairs
(a, b)
or(b, a)
exist, which one should be kept in the results? Note that tiebreaking withpattern_text
instead ofpattern_id
is inappropriate, as there are no guaranteedpattern_text
is unique.The filter criteria is missing too: why is pair
(lazy, example)
non-existent in the given example? (The kata probably requiresboth_count
greater than 0, which should be specified. Or did you use ajoin
whenleft join
would be more appropriate?)this solution solves in 4 seconds, while this solution barely makes it.
The performance constraints seem a bit unbalanced to me. I would either add less data or more (+ performance tag).
Somewhere in the description we read ..
And later we read ..
It's a bit of a contradiction. Specially when a pattern occurs more than once in some sentences.
Loading more items...