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
But then you have 2 times more vowels to check, so, all in all... That's just about mircooptimization, that doesn't change the time complexity. You generally don't care about microoptimizations as long as you don't do useless stuff.
This comment is hidden because it contains spoiler information about 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
This comment is hidden because it contains spoiler information about the solution
Everything works now.
I also tried double precision floats in your Floating-point Approximation(II) kata. It was not enough to change the default precision format. For some reason, it was also necessary to change the provided
trunc
function:I don't think you need to update that kata because floating-point errors do not accumulate too much there.
Modified. I didn't add this line in my first tries to the good place...
Once again lots of thanks for your patience!
This comment is hidden because it contains spoiler information about the solution
Before publishing I tried my solution with your proposition but I didn't see any difference in the results so I didn't take this modification for the definitive reference solution. To be on the safe side the results are accepted in Common Lisp with a tolerance of one (you can see function "dotest") and I thought it was sufficient.
I will introduce "double-float".
OK. Length tested!
Agree.
Could be interesting to run some perfomance tests.
Besides smth like String.splitAsStream might be handy.
CommonLisp: The following line should be added to the solution and test code:
As I understand, CommonLisp uses single precision floating-point numbers by default. Single precision floating-point arithmetic may yield inaccurate results. For example, my solution does not pass some random tests because of this issue.
Loading more items...