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.
looks good to me.
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).It might just be me, but it seems the description is unclear in how the encoding is to be done. When I first read the description, I thought the shift would only increase by one for each character to be encoded. For example, encode('A Day', initial_shift=1) -> 'B Fdc'. However, based on the test data, it seems that the shift increases for each position in the message, regardless if the character is actually to be encoded. So non-encoded characters (i.e. punctuation) are included in the count. So encode('A Day', initial_shift=1) -> 'B Ged'. I feel like this might have been made a bit more clear in the description.