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.
Yep, in the tree that is described even in the example, this solution returns the incorrect value "15" instead of "-51".
Neat. I never knew that Python allows one line for
conditional: resulting statement
This comment is hidden because it contains spoiler information about the solution
I was wrong. Sorry
WRONG! Check "with your hands on paper" for n = 9. You cannot build 51 hexagons on 81 triangles! Only 49.
spoiler
flag
.This comment is hidden because it contains spoiler information about the solution
Thank you and yes I understood it enough to solve the problem now. Super cool!
Added. Hope this will be understandable
Maybe adding this to the description :
Already have in description:
Let
H(n)
be the number of all regular hexagons that can be found by connecting 6 of these points.I think a more helpful tip is to stress that the hexagons are formed by points and not lines.
@vlukyanets: just say it in the description (that the hexagons can have different orientations) otherwise you'll get hundreds of messages asking for this.
Searching 12th hexagon is way to solution
i also encountered the same issue, and i can't submit my attempt
although im 100% sure it's good
formula in reply (SPOILER)
btw, what formula is the tester using?
Loading more items...