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.
hyper573's solution turbed out to be correct. I added a few test cases to weed out some incorrect solutions back in april.
@qgppl any update on when this will be fixed?
This comment is hidden because it contains spoiler information about the solution
I have the same issue as thurstonzd. I've found the answer wanted, but still don't get why it's accepted.
For example:
"2018-09-11 07:17:57" - "2018-09-14 07:17:57"
"2018-09-12 07:17:57" - "2018-09-16 07:17:57"
these visits do not overlap according to accepted conditions. Why?
sentenzo is right. Issue closed.
looks good to me.
The best I could do without breaking all current solutions for SQL is adding a conditional comment to the SQL description. I hope that's enough.
The same problem I had.
You should remove spaces from your results.
This is what the output tries to tell you.
The same problem I had.
You should remove spaces from your results.
This is what the output is trying to tell you.
Good kata overall. My only beef is that the provided query (that needs to be reworked) uses old-style
JOIN
syntax and orders by column index rather than name.Looking at expected and actual results, it seems I'm getting the right results. However, I keep failing one test:
It seems there's either characters missing I need to add at the beginning of the %, or extra characters I need to take away. Am I missing something?
As others have said, this kata has very poorly written instructions. I initialy just returned the liters, since that's what the instructions seemed to ask for. Only by looking at the test cases did I realize that the other columns were needed. Also, the instructions use the British spelling (litre), while the tests expect the American spelling (liter).
Perhaps I'm missing something, but I can't seem to get the correct end results. Based on the way I'm reading the instructions, we're supposed to find the maximum number of overlapping entries by date, right? So if
Entry ID 1
started on2018-05-01
and ended on2018-05-05
, then the following entries would be considered overlapping:2018-05-02
and ended on2018-05-06
, because the start is between the first entry's start and end.2018-04-28
and ended on2018-05-02
, because the end is between the first entry's start and end.However, the following entries would not be considered overlapping:
2018-04-28
and ended on2018-04-29
, because the start and end are both < the first entry's start date.2018-05-06
and ended on2018-05-07
, because the start and end are both > the first entry's end date.Please let me know if I'm misunderstanding the problem.
Thanks!
I think the database design is a bit wonky. I think a better design might be separate tables for elements and Multiplers. Something like
Elements(element_id, element_name
andMultipliers(attacking_element, defending_element, multiplier)
. It was a bit unclear to me at first that theMultipliers
table was only for pokemon attacking grass types (which works for this challenge, but, again, I don't think is a very well-designed structure).I agree, spaces are counted as characters as well.
I'm also having a problem understanding the encoded message divvying up part of the Kata. I think the spec could have been made a little more clear or less complicated. I read that thing like 3 times and still don't quite get it but I'm gonna try out a few variations of my interpretation. lol
Loading more items...