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.
clover solution, i don't remember we can access to a char by charAt(), i always used it but i don't know how i forgot that. thanks for a new short way to solution.
it works only if the full name is in the format . If it is <LastName, FirstName>, it will not work.
This comment is hidden because it contains spoiler information about the solution
Is this faster?
If score is "10:9" this function will break.
This is a great way to practice Duration class methods. Very well done.
thanks!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
amazing @adrian-lui
i mean, yeah, but the task specifically asks you to include your points when calculating the class averange :p
I thought that this function would expect points as the return statement..can somebody explain to me why not?
You can make the isPrime method much more efficient by only checking against other prime numbers under p. Since you are building up the prime cache starting from 2 and working your way up there is no risk of missing primes.
I missed that the upper bound was Math.sqrt in my solution.
This comment is hidden because it contains spoiler information about the solution
Adding yourPoints to the array will NOT change the result, if you think about it. It will change the average point but it will not change the fact that you are higher or lower than the average.
Loading more items...