Chef and Stack of Tiles
CodeChefOpen on judge ↗
Chef has a rectangular board in which each square has some tiles stacked up on that square. Chef want to arrange the tiles on the rectangular board in such a manner that each square on the boundary of the rectangle has tiles stacked on it in an ascending order. Chef wants you to help him with the arrangement of the stacks of tiles on the square. Input - First line consists of the length(m) and b
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