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.
Approved.
right, well noticed
If you test something in the sample tests, you should also test it in the fixed Tests. Actually I would remove 17 and 20 from the sample tests and only test this in the fixed tests.
I did it with n=17 because this is the sample of the other languages. But I changed it to n=20 :)
Sample tests test for
n=17
but random tests only test up ton=16
. Alson=20
is possible without overflowinglong
range.Why StringBuffer instead of StringBuilder?
StringBuilder in this case is probably more performative, right?!
Great Solution,
I would include the locale, otherwise, the result could be in another language.
DateTimeFormatter.ofPattern("LLLL, d").withLocale(Locale.US).format(LocalDate.ofYearDay(isLeap ? 2020 : 2021, day))
This comment is hidden because it contains spoiler information about the solution