geeksforgeeks
  • Courses
  • Tutorials
  • Interview Prep
  • DSA
  • Practice Problems
  • C
  • C++
  • Java
  • Python
  • JavaScript
  • Data Science
  • Machine Learning
  • Courses
  • Linux
  • DevOps
Similar Topics
Web Technologies32.1K+ articles
DSA20.4K+ articles
Python19.6K+ articles
Experiences15.8K+ articles
Interview Experiences14.5K+ articles
School Learning11.1K+ articles
JavaScript9.9K+ articles
Java9.4K+ articles
Misc7.7K+ articles
Mathematics5.7K+ articles

DSA-Coding-Pattern

4 posts
Hollow Diamond Pattern
Last Updated: 11 March 2026
Given an integer N, print the pattern shown below.Examples:Input: N=5Output: Input: N=3Output: Using Nested Loops - O(n^2) Time and O(1) SpaceIterate through 2 × n − 1 r...read more
article_image
DSA
DSA-Coding-Pattern
Print Solid Rectangle Star Pattern
Last Updated: 13 March 2026
Given two integers n and m, print a solid rectangle pattern of stars with n rows and m columns. Each row has exactly m stars.Examples:Input: n = 3, m = 5Output: Input: n...read more
article_image
DSA
DSA-Coding-Pattern
Printing Pyramid Patterns
Last Updated: 11 March 2026
Given a positive integer n, print a pyramid pattern consisting of stars (*) such that the number of rows equals n. The pyramid should be center-aligned as shown in the exa...read more
article_image
DSA
DSA-Coding-Pattern
Right-Aligned Number Triangle
Last Updated: 11 March 2026
Given an integer N, print the pattern shown below.Examples:Input: N = 3Output: Input: N = 6 Output: Using Nested Loops - O(n^2) Time and O(1) SpaceThe pattern forms a rig...read more
article_image
DSA
DSA-Coding-Pattern
GeeksforGeeks
location
Corporate & Communications Address:
A-143, 6th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
location
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play StoreGFG App on App Store
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Campus Training Program
  • Explore
  • POTD
  • Job-A-Thon
  • Blogs
  • Nation Skill Up
  • Tutorials
  • Programming Languages
  • DSA
  • Web Technology
  • AI, ML & Data Science
  • DevOps
  • CS Core Subjects
  • Interview Preparation
  • Software and Tools
  • Courses
  • ML and Data Science
  • DSA and Placements
  • Web Development
  • Programming Languages
  • DevOps & Cloud
  • GATE
  • Trending Technologies
  • Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
  • Preparation Corner
  • Interview Corner
  • Aptitude
  • Puzzles
  • GfG 160
  • System Design
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved