Courses
Tutorials
Interview Prep
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
Similar Topics
Web Technologies
32.1K+ articles
DSA
20.8K+ articles
Python
19.6K+ articles
Misc
7.7K+ articles
Python Programs
3.7K+ articles
Matrix
743+ articles
Computer Science Fundamentals
422+ articles
Basic Coding Problems
372+ articles
spiral
26+ articles
Python Pattern-printing
17+ articles
pattern-printing
174+ posts
Recent Articles
Number Bridge Pattern
Last Updated: 04 October 2026
Given an integer n, print a number bridge pattern where the ith row contains numbers from 1 to i in increasing order followed by numbers from i to 1 in decreasing order, p...
read more
DSA
pattern-printing
Sequence Fun
Last Updated: 17 September 2026
Given an integer n, find the nth term of the given sequence: 2, 5, 16, 65, …. Since the answer can be very large, return it modulo 1e9 + 7.Examples:Input: n = 4Output: 65E...
read more
DSA
pattern-printing
Partition Array into Atmost K Length Segments for Maximum Sum
Last Updated: 24 July 2026
Given an integer array arr[] and an integer k, partition the array into contiguous subarrays such that each subarray has a length of at most k. After partitioning, replace...
read more
DSA
pattern-printing
Pattern Printing Problems
Last Updated: 23 July 2025
In many interviewsstar, number, and character patternsare theMost Asked Pattern Programsto check your logical and coding skills. Pattern printing programs not only improve...
read more
DSA
pattern-printing
Print Butterfly Pattern
Last Updated: 20 October 2026
Given a number n, print Butterfly pattern using '*' character. The pattern contains 2n - 1 rows, with the upper half expanding from 1 to n stars on each side and the lower...
read more
DSA
pattern-printing
Program to Print Inverted Full Pyramid Pattern (Star Pattern)
Last Updated: 12 February 2024
Given an integer N, the task is to print a pattern of N rows representing an inverted full pyramid. In this pattern, the first row has (2 * N - 1) stars, the second row ha...
read more
DSA
pattern-printing
Scala-Arrays
Inverted Left Half Pyramid Star Pattern
Last Updated: 26 March 2026
Given an integer N, create an inverted left half pyramid pattern with N rows. In this pattern, the first row contains N stars, the second row contains N - 1 stars, and eac...
read more
DSA
pattern-printing
Program to Print Full Pyramid Pattern (Star Pattern)
Last Updated: 23 May 2026
Given an integer N, the task is to print a full pyramid pattern with N rows. In this pattern, each row contains an odd number of stars, ranging from 1 star in the first ro...
read more
DSA
pattern-printing
Program to Print Left Half Pyramid Pattern (Star Pattern)
Last Updated: 23 July 2024
Given an integer N, the task is to print N rows of left half pyramid pattern. In left half pattern of N rows, the first row has 1 star, second row has 2 stars and so on ti...
read more
DSA
pattern-printing
Solid Right Angle Triangle Pattern
Last Updated: 20 October 2026
Given an integer n. Write a program to print the Right angle triangle wall. The length of perpendicular and base is s.Note: Print exactly single " " after "*". Print a new...
read more
DSA
pattern-printing
Scala-Arrays
Inverted Right Angle Triangle Pattern
Last Updated: 20 October 2026
Given an integer n, the task is to print an inverted right-angled triangle pattern using the * character. The pattern contains n rows, with the first row containing n star...
read more
Picked
DSA
pattern-printing
Geeks Premier League 2023
Java Program For Printing 180 Degree Rotation of Simple Half Left Pyramid
Last Updated: 22 September 2023
We can utilize 'for' and 'while' loops to print a 180-degree rotation of a simple half-left pyramid in Java as follows:Example of 180-degree Rotation of Simple Half-Left P...
read more
Java
Java Programs
Geeks Premier League
pattern-printing
Java-Pattern
Geeks Premier League 2023
Python Program to Print Christmas Tree Star Pattern
Last Updated: 23 July 2025
The "Python program to print Tree pattern" is a piece of code that creates a tree pattern out of asterisks (*) using Python. The indentation and amount of asterisks per ro...
read more
Python
Python Programs
pattern-printing
Python Program to Print Alphabetic Triangle Pattern
Last Updated: 23 July 2025
In this article, we examine a recursive method for printing character patterns in Python. Nesting loops are used in the conventional iterative approach to regulating chara...
read more
Python
Python Programs
pattern-printing
C++ Program To Print Pyramid Patterns
Last Updated: 26 August 2026
Pattern programs are a great way to practice loops and strengthen your C++ programming and problem-solving skills. The C++ Course provides hands-on examples and exercises ...
read more
C++
pattern-printing
C++ Pattern Programs
CPP Examples
1
2
3
4
...
12
✕