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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
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.
Is it a good idea to write a lower level code compared to using pre-existing libraries while you are learning? I am just asking because I tend to write code like this too. I have this idea in my head that if I extensively borrow from libraries I might be cheating.
both :)
this code smells like Java, or C :D
what did you write before?