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.
Judging from the diff you did the following:
export
from solution setupWhere exactly did you fix the sample test cases?
I will reject this fork as I see no improvements.
Fixed sample test case. Please review.
yes, same here :)
[1,1,1,1,2,2,2,3,3,3,4,4,4] is array and [month] selects value by position in array. same as
const values = [1,1,1,1,2,2,2,3,3,3,4,4,4];
return values[month];
because regex will check for match of single character from inside brackets. Check https://regex101.com/ for explanation of this one.
Nice! If string contains 3 or 4 aren't those replaced wiht ' '?