# Tag Archives: pattern-printing

Given a matrix mat[][], print it in Wave Form.  Input: mat[][] = {{  1,   2,   3,   4}           … Read More
Given a matrix of 2D array of n rows and m columns. Print this matrix in ZIG-ZAG fashion as shown in figure.   Example:   Input: 1… Read More
Given a matrix of 2D array of n rows and m columns. Print this matrix in ZIG-ZAG fashion as shown in figure.   Example:   Input: 1… Read More
Given a 2D array, print it in reverse spiral form. We have already discussed Print a given matrix in spiral form. This article discusses how… Read More
Given a 2D array, print it in reverse spiral form. We have already discussed Print a given matrix in spiral form. This article discusses how… Read More
Given a 2D array, print it in reverse spiral form. We have already discussed Print a given matrix in spiral form. This article discusses how… Read More
Given a 2D array, print it in reverse spiral form. We have already discussed Print a given matrix in spiral form. This article discusses how… Read More
Given a 2D array, print it in reverse spiral form. We have already discussed Print a given matrix in spiral form. This article discusses how… Read More
Given 3 positive integer c1, c2 and n, where n is size of 2-D square matrix. The task is to print the matrix filled with… Read More
Given a string, S of size N, and a number of rows R, the task is to print the given string in a vertical zigzag… Read More
Pascal’s triangle is a pattern of the triangle which is based on nCr, below is the pictorial representation of Pascal’s triangle. Example: Input: N =… Read More
Given a matrix arr[][] of dimensions N * M and an integer K, the task is to print all elements of the matrix starting from… Read More
Let us see how to print an inverted heart pattern in Python. Example: Input: 11 Output: * *** ***** ******* ********* *********** ************* *************** *****************… Read More
Given a number N, the task is to determine if it is possible to make Pascal’s triangle with a complete layer by using total number… Read More
Given an integer N, the task is to print the pattern below for the given value of N.   For N = 5, below is the… Read More