Design
CodeChefOpen on judge ↗
Print the following pattern Sample Input 5 Sample Output A ABA ABCBA ABCDCBA ABCDEDCBA ABCDCBA ABCBA ABA A Note: Input has to be taken dynamically and not static (i.e HARDCODED INTO PROGRAM) Example In C : int a = scanf(%d, &n); In Java : Scanner sc = new Scanner(System.in); int a = sc.nextInt(); In Python 3.6 : num = int( input()) Use similar methods for other languages
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