← All problemsSign in

Code Wars Flag

During the great battle of code, the chef commander wanted to waive the great kingdom's flag, write a code to generate the great flag of the kingdom Output C O O O D D D D D E E E E E E E W W W W W W W W W A A A A A A A A A A A R R R R R R R R R R R R R S S S S S S S S S S S S S S S Explanation The flag is a form of pyramid with increment in the number of letters in each line the letters are

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start