Python1 Min Read LetuscrackonJune 11, 2024 Matrix Diagonal Pattern Given an integer matrix of size N*N as input, the program must print only the diagonal elements. The remaining elements must be replaced by *…
Python2 Min Read LetuscrackonJune 11, 2024 Crown Pattern The program must accept an odd integer N as the input. The program must print a grid of characters representing the crown pattern…
Cognizant1 Min Read LetuscrackonJune 11, 2024 Function printFullNumber – CTS PATTERN You are required to complete the given code by implementing the logic for the function. You can click on Run anytime to check the…
C1 Min Read LetuscrackonJune 11, 2024 Pattern – ZigZag Number Square Given an integer N as the input, print the pattern as given in the Example Input/Output section. Input Format: The first line contains N.…
Cognizant1 Min Read LetuscrackonJune 11, 2024 Function matrixTopView – CTS PATTERN You are required to fix all the logical errors in the given code. You can click on Run anytime to check the compilation/execution status of…
Cognizant1 Min Read LetuscrackonJune 11, 2024 Function printCornerElements – CTS PATTERN You are required to fix the logical error in the given code. You can click on Run button anytime to check the compilation/execution status of…
Cognizant1 Min Read LetuscrackonJune 11, 2024 Function isPalindrome – CTS PATTERN You are required to fix all the logical errors in the given code. You can click on Run anytime to check the compilation/execution status of…
Cognizant1 Min Read LetuscrackonJune 11, 2024 Function matrixTranspose – CTS PATTERN You are required to complete the given code by reusing existing functions. You can click on Run button anytime to check the…
Python1 Min Read LetuscrackonJune 11, 2024 Multi Layered Diamond Shaped Rhombus Pattern Given an odd value of N, the program must print multi layered rhombus pattern in diamond shapes whose side contains N, N-2, … 1 slashes…
Python1 Min Read LetuscrackonJune 11, 2024 Odd Even Row – Pattern Printing Given a value of N, where N is the number of rows, the program must print the character ‘*’ from left or right depending on…