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.
n
andm
were results ofweekdays
with different orders of arguments. I've changed the names toweekdays_date1_date2
andweekdays_date2_date1
.when creating this kata, I thought about this and specifically created an edge case test to check this point. I, frankly, always myself thought that using
between
operator without castingdate
type will exclude last day from the boundaries. But I checked that bothand
are including 2023-06-30. so for sure there is no issue in the kata, but I am still perplexed why this is happening :)
I believe this kata has an issue. For example,
between '1999-03-20' and '1999-03-21'
means you want only data for only one day. Starts-with-inclusive, ends-with-exclusive.Description says nothing about exclusion of the last day of a trimester, but one may only complete this kata when he/she does so.
я тоже с рекурсией сидел, но правильный результат не получался.
есть проблемы с пониманием, одно дело когда на пустом месте нагенерировать строк, другое когда навешивать рекурсию на готовую таблицу.
Потом как вспомнил что решение в одну строчку кумулятивной суммой, так и почувствовал себя дауном.
My solution works perfectly on my local machine with PostgreSQL, but this kata throws this at me:
Does anybody know what do these
n
andm
mean?Same