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.
Such a terrible kata the worst of all 8 kyu katas
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.
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.
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.
This comment is hidden because it contains spoiler information about the solution
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).
Approved
C Translation
This comment is hidden because it contains spoiler information about the solution
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.
I was wondering how come I've got 8kyu kata in my Unfinished katas... I see. I think I'll keep it there.
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.
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.
This comment is hidden because it contains spoiler information about the solution
Same here.
Update: if this happens to you, copy your code to the clipboard, reset the kata and paste it right back down. Worked.
Loading more items...