Triangle
CodeChefOpen on judge ↗
Bappa and Mushak Raaj were playing a game of puzzles together, but they got stuck. The puzzle is like: You are given an isosceles triangle with the non-isosceles side as the base of length $B$ and its height as $H$. You have to fit $N$ rectangles (not necessary to be the same) inside the triangle stacked one above the other as shown in the following diagram. ![Triangle](https://res.cloudinary.c
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