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.
bcs. this is stric equality check
Why did you put three === ?
omg XD i just make it long
thanks!
I think ORDER BY clauses don't have a guaranteed order in SQL, yeah? Well I think for practical reasons, a kata like this needs to be a bit strict to make testing realistic (having to accomodate all permutations of solution orders across arbitrary levels of nesting will make the tests even more complex). But you're right that if an assumption like this is to be made, then it needs to be explicitly stated the description. The JS version makes it explicit but only in the tests, and the other translations (which I think you were solving) don't make it explicit at all. I think you should reraise this as an issue.
I've double checked the fixed and random tests code and
from()
is impossible to be generated.from
is always either omitted or invoked in the following three forms:from([])
,from(table)
orfrom(table, ...)
(NOTfrom([table, ...])
). If the issue you're referring to isfrom
being omitted, all clauses are omittable per the requirements (query().execute()
is valid), so that couldn't be the issue. If you're referring tofrom([])
, then the empty array is one argument - an empty table, and that's completely valid.I think the sql statement in the following test is misleading:
fixed
C translation issue:
incorrectly expects p(0)==2
approved
what's with the ordering on the groupby stuff? My solution is not being accepted because it's not the same order as the author's output even though there is no order by clause. I am using dictionaries to get the right structure and I should not be penalized for that.
Thanks for this enjoyable kata! I liked how it made me think about both diagonals at once.
Clean and fun implementation opportunity.
Appreciate the challenge and the variety it adds to training!
like me
It's 'almost' as same as the previous one with an additional tweak in value return
approved
Loading more items...