I think I find it easier to use always the same method for all root calculation, instead of a diffent method for the exception which the square root is.
Hey musesli , so looking at your solution. What's the benefit of using a Diameter() fuction. I thought doing division would cost a lot of processing time.
Wouldn't it be better if you hard code your diameters in the if statments to optimize your code? I thought your solution was facinating by the way.
Hi, no reason and no performance gain.
I think I find it easier to use always the same method for all root calculation, instead of a diffent method for the exception which the square root is.
Hey I looked at your solution, why did you use Math.POW (~~~, 0.5) instead of Math.Sqrt(~~). Does POW take less instruction time?
Thanks Soptinator!
I almost feel guilty that you spent so much time... ;)
Hey musesli , so looking at your solution. What's the benefit of using a Diameter() fuction. I thought doing division would cost a lot of processing time.
Wouldn't it be better if you hard code your diameters in the if statments to optimize your code? I thought your solution was facinating by the way.
Well done!
My bad, sorry. However, wouldn't it make much more sense to specify it as radius?
Whew, that was a tough kata. I spent all day trying to figure out the RandomTest.
Hint: Presicion matters.
Excellent Kata Frank! Thanks!
yeah sure
I pass all the final tests but I fail the RandomizedTest with a IndexOutOfRangeException. I really want to beat this Kata please help.