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.
Hi,
I tried to solve this kata in Crystal. Unfortunately I have two issues:
expected: [10, 3.0418396189]
got: [10, 3.0418396186909367]
on the other hand using round 9 returns a value as expected:
expected: [10, 3.0418396189]
got: [10, 3.041839619]
It's just my third kata in Crystal, so I don't know if I'm doing something wrong or it's just a bug in Crystal
a) first test
expected: [10, 3.0418396189]
got: [10, 3.0418396186909367]
b) second test
expected: [100, 3.1315929036]
got: [100, 3.1315929033839542]
c) thrid test
expected: [1000, 3.1405926538]
got: [1000, 3.1405926539827576]
d) fourth test
expected: [10000, 3.1414926536]
got: [10000, 3.1414926533677505]
Any ideas?
Thanks in advance
This comment is hidden because it contains spoiler information about the solution
I was wondering if a 7th kyu grade is skilled enough to solve this kata this way, as it is a beginner's grade.
My expectation has been (from a java point of view):
8th kyu -> brute force solution with simple type int
7th kyu -> brute force solution with BigInteger (for I have to use the object's methods and constants)
6th kyu -> performing a bit-wise operation for enhancement
What do you think?
Why not adding a link to mathworld ( http://mathworld.wolfram.com/Determinant.html ) inside the kata description for some theory background about determinants?
Ah, I see. No problem, just would've been nice...err naughty...nevermind ;-)
I would like to be on the naughty list :-)