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.
fixed
Sets the name (alias) of result column.
What does "as mod" do?
ok.interesting
You can read the documentation of the function in question, you know?
How does this solution (and the other similar ones) meet the "the ascii code of their first byte" requirements? I mean, where is the control for "first byte"?
Now I see your intention, which would have made an interesting and challenging SQL practice. To do that, I wonder if you can expand the question to some more generic cases where there's more prompt/solutoin pairs. (There might be a peformance implication?)
For example, for a product P and a sum S, check in table nums to find all pairs that satisify P and S, etc.
Otherwise simply returning 13 and 4 seems to be the easy way to go.
Sorry but can't assist you here as i haven't published any kata to know how this works.. What i can see is that the issue is in the TDD in the following extract:
describe :items do
it "should return 3 items" do
expect(results.count).to eq 3
end
end
If you change to eq 3 to another number then it changes the number of rows expected when testing.
sorry for the inconveniences, code changed to remove spaces around names please resend your solution.
Hey sorry for the delay I haven't been on here in a while. I see what you're talking about when I click run sample tests but when I edit the kata I don't see the tdd code that is in the sample tests. I don't think I ever put that code in there to validate this.
When I click validate solution on the edit kata screen it works and it's using the original code for validating it. I tried republishing the kata hoping my validation code would be there but the invalid validation code still remains. Any ideas?
That's not an issue, that's a question.
This comment is hidden because it contains spoiler information about the solution
Hello it seems that some of the currently posted solutions when you unlock the solutions section for this kata are no longer valid to solve the kata due to the limit of amount of rows should be 3 in the final solution. Can you please adjust that or specify if the solutions provided are wrong and the final result set rows should be just 3 or the conditions for solving the kata are of?
Thanks!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...