Hexagon in Triangle
CodeChefOpen on judge ↗
Given an equilateral triangle of side length $n$, that forms a pattern as given in the following image, your task is to find the number of regular hexagons ( of any side length greater than 0 ) in the triangle, such that it has its side overlapping with any of line in the pattern.  You will be given multiple test cases, and have to gi
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start