Skip to content

Tag Archives: pattern-printing

Given an integer N, the task is to print a number diamond of size N in rangoli style where N means till Nth number from… Read More
Given a number n, we need to print a X pattern of size n. Input : n = 3 Output : $ $ $ $… Read More
Given a number N, the task is to print the triangle separated pattern. Triangle Separated Pattern: Pattern in which four triangles (left, down, right, up)… Read More
Given a number N(≥ 8), the task is to print a Hollow Triangle inside a Triangle pattern. Example: Input: N = 9 Output: * *… Read More
Given a number n. The task is to print n-integers n-times (starting from 1) and right rotate the integers by after each iteration.Examples:   Input :… Read More
Given any alphabet between A to Z, the task is to print the pattern of the given alphabet using star. Examples: Input: A Output: **… Read More
Given an integer N which is the number of rows, the task is to draw the number pattern in the shape of a double headed… Read More
Given a positive integer N, the task is to find the sum of all the numbers in the Nth row of the below triangle. 1… Read More
Sierpinski triangle is a fractal and attractive fixed set with the overall shape of an equilateral triangle. It subdivides recursively into smaller triangles. Approach: In… Read More
Given an integer N, the task is to print the ladder with N steps using ‘*’. The ladder will be with the gap of 3… Read More
This article aims to print patterns using the time() module in python. Examples: Input : 5 Output : 5 patterns using time with 5 rows… Read More
Given a number N which represents the last term of the Triangle Pattern. The task is to print the Triangle Pattern from 1 to N,… Read More
Given a word str, the task is to print the alphabets of this word using * pattern. Examples: Input: GFG Output: ****** * * *… Read More
The task is to print a pattern as shown in the example for a given integer value. The goal is not to print just this… Read More
This article is aimed at giving a recursive implementation for pattern printing. Pattern 1: Example: Input: 5 Output: * * * * * * *… Read More