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.
A regex would be better suited for such scenerios imo
Thats a great solution and the best part about it is that it can be used to the other kata where its [],{} and () instead of just ()
I guess its because you already know the solution, implementing it in another language would not be that difficult
Beautiful variable naming conventions used except for n (which could be substituted for yearsToTake, but its completely subjective)
I really like this solution. While most other have used the Math object to get the job done, your solution is pretty language agnostic and thus this solution can be applied in a variety of scenerio irrespective of the language.