⏱ 00:00
Attempts:0
Best: 0/100
Nested Symmetry & Void GeometryTarget Time: 25 mins
Complex Symmetric Pattern
Given an integer N, print a dual-framed symmetric box of size 2*N x 2*N with an inverted diamond hollow interior: outer wings of stars and an inner expanding then contracting hollow diamond of spaces.
Input Format
A single integer N.
Output Format
Print 2*N rows forming the complex symmetric pattern.
Constraints:1 <= N <= 12
Concepts Required:
Dual wing computation2*N x 2*N grid space formulasInverted diamond cutouts
Expected Pattern PreviewASCII Monospace
********** **** **** *** *** ** ** * * * * ** ** *** *** **** **** **********
Notice how character spacing and row counts scale systematically based on the input N.
Concrete Examples
Example 1
Input:
5
Output:
********** **** **** *** *** ** ** * * * * ** ** *** *** **** **** **********
Explanation: Top half contracts wings, bottom half expands wings.
