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.
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.
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.
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.
needs to be checked
Translation Dart
no, you have to use numbers for random range...
Haskell translation
is it possible to use random for this? that was my first thought
nice one
I like this one.
This comment is hidden because it contains spoiler information about the solution
I hadn't read the description till the end. Not my first time 🙄
i added more personalized assertion messages to Python
or perhaps just a reminder from the description:
The error message is confusing:
Maybe
or math operators
should be added.You used
+
in your code.This comment is hidden because it contains spoiler information about the solution
Loading more items...