Ad
  • Custom User Avatar

    I would, no offense. The description of the problem leaves much to be desired anyways. What's next should we call the fibonacci series as "a collection of numbers where a number is the sum of the previous two" so that its harder for people to research if they don't know about its existence. I can hardly understand how the function should be written without looking at the tests and rereading the description 3 times. There are ways to write a description which makes things interesting without holding the person's hand.

    Edit: To clarify I really don't mind googling as much as some here in the comments, that's how I have learned anything especially regarding programming or pen testing, but give better hints. Otherwise it was quite a fun kata.

  • Custom User Avatar

    I wouldn't call myself lazy. I purposefully left out the formula for someone to figure that out themselves... The problem came in when a moderator down-rated it to 8 kyu without changing anything in the description.

  • Default User Avatar

    The author was a little lazy when writing the discription of the task. Since it kata-8 it was possible to add a description that there is the single formula for a circle inscribed in regular polygons.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Surely it's really easy as a coding issue but only if you are familiar with the math formula (or allow yourself to google it).

  • Custom User Avatar

    Approved

  • Default User Avatar
  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    I would rewrite it to just "Find the radius of the largest circle that fits inside a regular polygon." since the whole working for a box making company just adds confusion.

  • Default User Avatar

    I was wondering how come I've got 8kyu kata in my Unfinished katas... I see. I think I'll keep it there.

  • Default User Avatar

    Consider the circular sector of central angle α between two successive points of tangency. One has
    area(circular sector)length(circular arc)=12αr2αr=r2 ,
    and for the corresponding part of the polygon (a kite) one has
    area(kite)length(outer edges)=2⋅12r⋅rtanα22rtanα2=r2
    as well. Now, if ai=r2bi (1≤i≤n) then
    ∑iai∑ibi=∑ir2bi∑ibi=r2 ,
    and this is valid for the union of circular sectors as well as for the union of kites.

  • Default User Avatar

    I would say, in this kind of situation where you challenge yourself for your own sake, not for some kind of prize you will take away from another person more adept; the definition of cheating would be dependent on the individual. If you are not interested in mathematics, it might not be considered cheating if you google specific formulas.
    But for someone like me for example, I would consider myself cheating if I ask google insead of figuring the formula out by myself using pen and paper. Those Formulas are proven by human beings like us. They are not magical things that you should imperatively memorize because there is no way of proving them.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    Same here.

    Update: if this happens to you, copy your code to the clipboard, reset the kata and paste it right back down. Worked.

  • Default User Avatar

    i did the same mistake :) mixing between diameter and radius , One should always focus while reading !

  • Loading more items...