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.
Apart from modifying the original object this is pretty clever. Nice one!
This way you have a cleaner global namespace. I would use this solution if I'm massively doing search queries for data on the global namespace.
If you don't need to do this I prefer the other because that way, the possible configurations are separated from the code, which in the end could be extracted to an external file so you would attach different configurations to your app on start-up or runtime and you can change its behavior dinamically without modifying the source code and recompiling.
This is a very good solution because you don't need to modify the logicalCalc function if a new operation is needed.
This comment is hidden because it contains spoiler information about the solution
Cool, I agree with you. Using already implemented functionality is smarter than coding it again. Great!
Same here
I don't understand why this is clever. There is no algorithm implementation by the hand of the programmer in this solution. No greatful idea behind the author but knowledge about the Javascript library. Despite my solution is not like this one, I personally think this is very good function to use in practice that gives a lot of expressiveness to the code.
Is it different, in terms of memory usage, to have an array with the values than having them in the separated statements?
It doesn't really matter to avoid a bucles because it would have a logarithmic number of iterations in the number of digits.
It took me years to find the solution .__.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution