Accenture Advanced Coding Test 2024 | On-campus | OA | Patterns & Matrices
Accenture · Question · Posted Jun 2026
Question 1: Print Hollow Diamond Pattern Problem Statement Print a hollow diamond pattern using '*'. See examples for more details. Input Format The first line of input contains T - the number of test cases. It is followed by T lines, each line contains a single odd integer N - the size of the diamond. Output Format For each test case, print the test case number as shown, followed by the diamond pattern, separated by a new line. Constraints 1 ...
The full answer & interview discussion are available to premium members.
Log in Create a free account