• Custom User Avatar

    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.

  • Custom User Avatar

    Hey I looked at your solution, why did you use Math.POW (~~~, 0.5) instead of Math.Sqrt(~~). Does POW take less instruction time?

  • Custom User Avatar

    Thanks Soptinator!

    I almost feel guilty that you spent so much time... ;)

  • Custom User Avatar

    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.

  • Custom User Avatar

    Well done!

  • Custom User Avatar

    My bad, sorry. However, wouldn't it make much more sense to specify it as radius?

  • Custom User Avatar

    Whew, that was a tough kata. I spent all day trying to figure out the RandomTest.
    Hint: Presicion matters.

    Excellent Kata Frank! Thanks!

  • Custom User Avatar

    yeah sure

  • Custom User Avatar

    I pass all the final tests but I fail the RandomizedTest with a IndexOutOfRangeException. I really want to beat this Kata please help.