Pattern Craft
CodeChefOpen on judge ↗
Draw a dynamic patter as shown in example. Input First line of each test case should contain the H height of the pattern Output It should form the pattern as shown below. Constraints 3Example Input: 5 Output: 5 6 7 8 9 4 5 6 7 3 4 5 2 3 1
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