Programing-Street-150

Programming Street 150 - Sprint 1 (1-50)

Problem List

Sr. No Problem Difficulty Topics Description Example Solution File Additional Tutorial
1 Even or Odd Easy Basics, Conditionals Check if a number is even or odd. Input: 5 β†’ Output: Odd EvenOdd.cpp -
2 Prime Number Easy Math, Loops Check if a number is prime. Input: 7 β†’ Output: Prime PrimeNumber.cpp Prime.md
3 Leap Year Validation Easy Conditionals Determine if a given year is a leap year. Input: 2024 β†’ Output: Leap Year ValidatingLeapYears.cpp -
4 Armstrong Number Medium Math, Loops Check if a number is an Armstrong number. Input: 153 β†’ Output: Yes CalculatinArmstrongNumbers.cpp -
5 Fibonacci Series Easy Recursion, Loops Print Fibonacci series up to n terms. Input: 5 β†’ Output: 0 1 1 2 3 Fibonacci Series.cpp -
6 Palindrome Check Medium Strings, Two Pointers Check if a string is a palindrome. Input: "madam" β†’ Output: Yes Palindromes.cpp -
7 Star Patterns Easy Loops Print star patterns. Input: 3 β†’ Output: *\n**\n*** Star Patterns.cpp -
8 Factorial Medium Recursion, Loops Calculate the factorial of a number. Input: 5 β†’ Output: 120 FactorialNumber.cpp Factorial.md
9 Sum of Digits Easy Math Sum the digits of a number. Input: 123 β†’ Output: 6 SummingDigitsNumber.cpp -
10 Greatest Common Divisor (GCD) Medium Math Compute the GCD of two numbers. Input: (8, 12) β†’ Output: 4 GreatestCommonDivisor(GCD).cpp gcd.md
11 Least Common Multiple (LCM) Medium Math Compute the LCM of two numbers. Input: (4, 6) β†’ Output: 12 LeastCommonMultiple(LCM).cpp -
12 Reverse a Number Easy Math, Loops Reverse the digits of a number. Input: 123 β†’ Output: 321 ReversingNumber.cpp -
13 Count Digits Easy Math Count the number of digits in a given number. Input: 12345 β†’ Output: 5 CountingDigits.cpp -
14 Check Perfect Number Medium Math Determine if a number is a perfect number. Input: 28 β†’ Output: Yes PerfectNumber.cpp -
15 Check Strong Number Medium Math, Factorials Determine if a number is a strong number (sum of factorials of digits equals the number). Input: 145 β†’ Output: Yes StrongNumber.cpp -
16 Decimal to Binary Conversion Medium Math, Bit Manipulation Convert a decimal number to binary. Input: 10 β†’ Output: 1010 DecimalToBinary.cpp -
17 Binary to Decimal Conversion Medium Math, Bit Manipulation Convert a binary number to decimal. Input: 1010 β†’ Output: 10 BinaryToDecimal.cpp -
18 Sum of First N Natural Numbers Easy Math, Loops Compute the sum of the first N natural numbers. Input: 5 β†’ Output: 15 SumOfFirstNNumbers.cpp -
19 Power of a Number Medium Math, Recursion Calculate the power of a number using recursion. Input: (2, 3) β†’ Output: 8 PowerOfANumber.cpp -
20 Greatest of Three Numbers Easy Conditionals Find the largest of three numbers. Input: (3, 7, 5) β†’ Output: 7 GreatestOfThreeNumbers.cpp -
21 Check Armstrong Number Medium Math Determine if a number is an Armstrong number (sum of cubes of digits equals the number). Input: 153 β†’ Output: Yes ArmstrongNumber.cpp -
22 Sum of Digits Easy Math Compute the sum of digits of a number. Input: 123 β†’ Output: 6 SumOfDigits.cpp -
23 Factorial of a Number Medium Math, Recursion Compute the factorial of a given number. Input: 5 β†’ Output: 120 Factorial.cpp -
24 Fibonacci Series Medium Recursion, Loops Generate the Fibonacci series up to N terms. Input: 5 β†’ Output: 0 1 1 2 3 FibonacciSeries.cpp -
25 Palindrome Number Medium Math Check if a number is a palindrome. Input: 121 β†’ Output: Yes PalindromeNumber.cpp -
26 Prime Number Medium Math Check if a number is prime. Input: 7 β†’ Output: Yes PrimeNumber.cpp -
27 Prime Numbers in a Range Medium Math, Loops Find all prime numbers in a given range. Input: 1-10 β†’ Output: 2 3 5 7 PrimeNumbersInRange.cpp -
28 Sum of Prime Numbers Medium Math Compute the sum of prime numbers up to N. Input: 10 β†’ Output: 17 SumOfPrimes.cpp -
29 HCF (GCD) of Two Numbers Medium Math Compute the Highest Common Factor (GCD) of two numbers. Input: (8, 12) β†’ Output: 4 HCF_GCD.cpp -
30 LCM of Two Numbers Medium Math Compute the Least Common Multiple (LCM) of two numbers. Input: (4, 6) β†’ Output: 12 LCM.cpp -
31 Decimal to Binary Easy Math, Bit Manipulation Convert a decimal number to binary representation. Input: 10 β†’ Output: 1010 DecimalToBinary.cpp -
32 Binary to Decimal Easy Math, Bit Manipulation Convert a binary number to decimal representation. Input: 1010 β†’ Output: 10 BinaryToDecimal.cpp -
33 Reverse a Number Easy Math, Loops Reverse the digits of a given number. Input: 123 β†’ Output: 321 ReverseNumber.cpp -
34 Power of a Number Medium Math, Recursion Compute a^b using recursion. Input: (2, 3) β†’ Output: 8 PowerOfNumber.cpp -
35 Fibonacci using Recursion Medium Recursion Compute Fibonacci series using recursion. Input: 5 β†’ Output: 0 1 1 2 3 FibonacciRecursion.cpp -
36 Count Digits in a Number Easy Math, Loops Count the number of digits in a given number. Input: 1234 β†’ Output: 4 CountDigits.cpp -
37 Check Perfect Number Medium Math Check if a number is a perfect number (sum of divisors equals the number). Input: 28 β†’ Output: Yes PerfectNumber.cpp -
38 Sum of Natural Numbers Easy Math Compute the sum of the first N natural numbers. Input: 5 β†’ Output: 15 SumNaturalNumbers.cpp -
39 Check Automorphic Number Medium Math Check if a number is automorphic (its square ends with the number itself). Input: 25 β†’ Output: Yes AutomorphicNumber.cpp -
40 Check Harshad Number Medium Math Check if a number is a Harshad number (divisible by the sum of its digits). Input: 18 β†’ Output: Yes HarshadNumber.cpp -
41 Check Armstrong Number Medium Math Check if a number is an Armstrong number (sum of digits raised to power of count equals the number). Input: 153 β†’ Output: Yes ArmstrongNumber.cpp -
42 Reverse a String Easy Strings Reverse a given string. Input: "hello" β†’ Output: "olleh" ReverseString.cpp -
43 Palindrome String Easy Strings Check if a string is a palindrome. Input: "madam" β†’ Output: Yes PalindromeString.cpp -
44 Find Factorial Easy Math, Recursion Compute the factorial of a number using recursion. Input: 5 β†’ Output: 120 Factorial.cpp -
45 Find GCD Medium Math Find the Greatest Common Divisor (GCD) of two numbers. Input: (12, 18) β†’ Output: 6 GCD.cpp -
46 Find LCM Medium Math Find the Least Common Multiple (LCM) of two numbers. Input: (12, 18) β†’ Output: 36 LCM.cpp -
47 Sum of Digits Easy Math Compute the sum of digits of a number. Input: 123 β†’ Output: 6 SumOfDigits.cpp -
48 Count Vowels and Consonants Easy Strings Count the number of vowels and consonants in a string. Input: "hello" β†’ Output: Vowels: 2, Consonants: 3 VowelsConsonants.cpp -
49 Fibonacci using Iteration Easy Iteration, Math Compute Fibonacci series using loops. Input: 5 β†’ Output: 0 1 1 2 3 FibonacciIteration.cpp -
50 Print Pyramid Pattern Easy Patterns, Loops Print a pyramid pattern of stars. Input: 3 β†’ Output: \n * \n *** \n***** PyramidPattern.cpp -

Programming Street 150 - Sprint 2 (51-100)

Sr. No Problem Difficulty Topics Description Example Solution File Additional Tutorial
51 Check Prime Number Medium Math Check if a number is prime. Input: 7 β†’ Output: Yes PrimeNumber.cpp -
52 Find Prime Factors Medium Math Find all prime factors of a number. Input: 28 β†’ Output: 2 2 7 PrimeFactors.cpp -
53 Check Perfect Number Medium Math Check if a number is a perfect number (sum of divisors equals the number). Input: 6 β†’ Output: Yes PerfectNumber.cpp -
54 Decimal to Binary Easy Math, Conversion Convert a decimal number to binary. Input: 10 β†’ Output: 1010 DecimalToBinary.cpp -
55 Binary to Decimal Easy Math, Conversion Convert a binary number to decimal. Input: 1010 β†’ Output: 10 BinaryToDecimal.cpp -
56 Armstrong Numbers in a Range Medium Math Print all Armstrong numbers within a given range. Input: (1, 500) β†’ Output: 1, 153, 370, 371, 407 ArmstrongInRange.cpp -
57 Find HCF (GCD) using Recursion Medium Math, Recursion Compute the GCD using recursion. Input: (12, 18) β†’ Output: 6 GCDRecursion.cpp -
58 Find LCM using Recursion Medium Math, Recursion Compute the LCM using recursion. Input: (4, 6) β†’ Output: 12 LCMRecursion.cpp -
59 Reverse a Number Easy Math Reverse the digits of a number. Input: 1234 β†’ Output: 4321 ReverseNumber.cpp -
60 Count Digits in a Number Easy Math Count the number of digits in a given number. Input: 9876 β†’ Output: 4 CountDigits.cpp -
61 Sum of N Natural Numbers Easy Math Compute the sum of the first N natural numbers. Input: 5 β†’ Output: 15 SumNaturalNumbers.cpp -
62 Find Power of a Number Medium Math, Recursion Compute a^b using recursion. Input: (2, 3) β†’ Output: 8 PowerRecursion.cpp -
63 Find Square Root Medium Math Compute the square root of a number (without using built-in functions). Input: 16 β†’ Output: 4 SquareRoot.cpp -
64 Check Automorphic Number Medium Math Check if a number is automorphic (square ends with the number itself). Input: 25 β†’ Output: Yes AutomorphicNumber.cpp -
65 Check Harshad (Niven) Number Medium Math Check if a number is divisible by the sum of its digits. Input: 18 β†’ Output: Yes HarshadNumber.cpp -
66 Find Fibonacci using Recursion Medium Recursion, Math Compute Fibonacci series using recursion. Input: 5 β†’ Output: 0 1 1 2 3 FibonacciRecursion.cpp -
67 Generate Pascal’s Triangle Hard Math, Loops Generate Pascal’s triangle up to N rows. Input: 4 β†’ Output: \n 1 \n 1 1 \n1 2 1\n1 3 3 1 PascalsTriangle.cpp -
68 Find Sum of an AP Series Medium Math Compute the sum of the first N terms of an arithmetic progression. Input: a=2, d=3, n=5 β†’ Output: 40 APSeriesSum.cpp -
69 Find Sum of a GP Series Medium Math Compute the sum of the first N terms of a geometric progression. Input: a=2, r=3, n=4 β†’ Output: 80 GPSeriesSum.cpp -
70 Find nCr (Binomial Coefficient) Hard Math, Combinatorics Compute the binomial coefficient using factorial formula. Input: n=5, r=2 β†’ Output: 10 BinomialCoefficient.cpp -
71 Find HCF using Euclidean Algorithm Medium Math Compute the Highest Common Factor (HCF) using the Euclidean algorithm. Input: (48, 18) β†’ Output: 6 HCF_Euclidean.cpp -
72 Find LCM using HCF Medium Math Compute the Least Common Multiple (LCM) using HCF. Input: (12, 15) β†’ Output: 60 LCM_Using_HCF.cpp -
73 Check Neon Number Medium Math Check if a number is neon (sum of digits of its square equals the number). Input: 9 β†’ Output: Yes NeonNumber.cpp -
74 Check Spy Number Medium Math Check if a number is a spy number (sum of digits equals product of digits). Input: 1124 β†’ Output: Yes SpyNumber.cpp -
75 Convert Decimal to Binary Easy Number System Convert a decimal number to binary representation. Input: 10 β†’ Output: 1010 DecimalToBinary.cpp -
76 Convert Binary to Decimal Easy Number System Convert a binary number to decimal. Input: 1010 β†’ Output: 10 BinaryToDecimal.cpp -
77 Convert Decimal to Octal Easy Number System Convert a decimal number to octal representation. Input: 10 β†’ Output: 12 DecimalToOctal.cpp -
78 Convert Octal to Decimal Easy Number System Convert an octal number to decimal. Input: 12 β†’ Output: 10 OctalToDecimal.cpp -
79 Convert Decimal to Hexadecimal Easy Number System Convert a decimal number to hexadecimal. Input: 255 β†’ Output: FF DecimalToHexadecimal.cpp -
80 Convert Hexadecimal to Decimal Easy Number System Convert a hexadecimal number to decimal. Input: FF β†’ Output: 255 HexadecimalToDecimal.cpp -
81 Convert Binary to Octal Easy Number System Convert a binary number to octal. Input: 1010 β†’ Output: 12 BinaryToOctal.cpp -
82 Convert Octal to Binary Easy Number System Convert an octal number to binary. Input: 12 β†’ Output: 1010 OctalToBinary.cpp -
83 Convert Binary to Hexadecimal Easy Number System Convert a binary number to hexadecimal. Input: 1010 β†’ Output: A BinaryToHexadecimal.cpp -
84 Convert Hexadecimal to Binary Easy Number System Convert a hexadecimal number to binary. Input: A β†’ Output: 1010 HexadecimalToBinary.cpp -
85 Convert Octal to Hexadecimal Easy Number System Convert an octal number to hexadecimal. Input: 12 β†’ Output: A OctalToHexadecimal.cpp -
86 Convert Hexadecimal to Octal Easy Number System Convert a hexadecimal number to octal. Input: A β†’ Output: 12 HexadecimalToOctal.cpp -
87 Find ASCII Value of Character Easy Strings Find the ASCII value of a given character. Input: A β†’ Output: 65 ASCIIValue.cpp -
88 Swap Two Numbers Without Temp Variable Easy Math, Bit Manipulation Swap two numbers without using a temporary variable. Input: (3, 5) β†’ Output: (5, 3) SwapWithoutTemp.cpp -
89 Find Power of a Number Easy Math, Recursion Compute the power of a number using recursion. Input: (2, 3) β†’ Output: 8 PowerRecursion.cpp -
90 Compute nCr (Combination Formula) Medium Math Compute combinations using the formula nCr = n! / (r! * (n-r)!). Input: (5, 2) β†’ Output: 10 CombinationFormula.cpp -
91 Compute nPr (Permutation Formula) Medium Math Compute permutations using the formula nPr = n! / (n-r)!. Input: (5, 2) β†’ Output: 20 PermutationFormula.cpp -
92 Convert Uppercase to Lowercase Easy Strings Convert an uppercase string to lowercase. Input: "HELLO" β†’ Output: "hello" UpperToLower.cpp -
93 Convert Lowercase to Uppercase Easy Strings Convert a lowercase string to uppercase. Input: "hello" β†’ Output: "HELLO" LowerToUpper.cpp -
94 Find Maximum Subarray Sum (Kadane’s Algorithm) Medium Arrays, Dynamic Programming Find the maximum sum of a contiguous subarray using Kadane’s algorithm. Input: [-2,1,-3,4,-1,2,1,-5,4] β†’ Output: 6 KadaneAlgorithm.cpp -
95 Find First Non-Repeating Character Medium Strings, Hashing Find the first non-repeating character in a string. Input: "swiss" β†’ Output: "w" FirstNonRepeatingChar.cpp -
96 Reverse Words in a Sentence Medium Strings Reverse the words in a given sentence. Input: "I love coding" β†’ Output: "coding love I" ReverseWords.cpp -
97 Check for Anagrams Medium Strings, Sorting Check if two strings are anagrams of each other. Input: ("listen", "silent") β†’ Output: Yes CheckAnagram.cpp -
98 Longest Common Prefix Medium Strings Find the longest common prefix among an array of strings. Input: ["flower","flow","flight"] β†’ Output: "fl" LongestCommonPrefix.cpp -
99 Implement Binary Search Easy Searching, Divide & Conquer Implement binary search to find an element in a sorted array. Input: ([1, 3, 5, 7, 9], 5) β†’ Output: 2 BinarySearch.cpp -
100 Implement Selection Sort Easy Sorting Implement selection sort to sort an array. Input: [64, 25, 12, 22, 11] β†’ Output: [11, 12, 22, 25, 64] SelectionSort.cpp -

Programming Street 150 - Sprint 3 (101-150)

Sr. No Problem Difficulty Topics Description Example Solution File Additional Tutorial
101 Print a Right Angle Triangle of Stars Easy Patterns, Loops Print a right-angle triangle using stars. Input: 3 β†’ Output: \n* \n** \n*** 101.PrintARightAngleTriangleofStars.cpp -
102 Print a Square of Stars Easy Patterns, Loops Print a square of stars with given size. Input: 3 β†’ Output: \n*** \n*** \n*** 102.PrintASquareofStars.cpp -
103 Print a Pyramid Pattern Easy Patterns, Loops Print a pyramid pattern using stars. Input: 3 β†’ Output: \n * \n *** \n***** 103.PrintAPyramidPattern.cpp -
104 Print a Diamond Pattern Easy Patterns, Loops Print a diamond shape using stars. Input: 3 β†’ Output: \n * \n *** \n***** \n *** \n * 104.PrintADiamondPattern.cpp -
105 Print a Hollow Square of Stars Medium Patterns, Loops Print a hollow square of stars. Input: 3 β†’ Output: \n*** \n* * \n*** 105.PrintAHollowSquareofStars.cpp -
106 Print a Number Triangle Easy Patterns, Loops Print a right-angle triangle with numbers. Input: 3 β†’ Output: \n1 \n12 \n123 106.PrintANumberTriangle.cpp -
107 Print an Inverted Triangle Pattern Easy Patterns, Loops Print an inverted right-angle triangle. Input: 3 β†’ Output: \n*** \n** \n* 107.PrintAnInvertedTrianglePattern.cpp -
108 Print a Diamond Pattern with Numbers Medium Patterns, Loops Print a diamond pattern using numbers. Input: 3 β†’ Output: \n 1 \n 121 \n12321 \n 121 \n 1 108.PrintADiamondPatternWithNumbers.cpp -
109 Print a Right Angle Triangle of Numbers Easy Patterns, Loops Print a right-angle triangle of numbers. Input: 3 β†’ Output: \n1 \n22 \n333 109.PrintARightAngleTriangleOfNumbers.cpp -
110 Print a Pyramid Pattern with Numbers Medium Patterns, Loops Print a pyramid pattern with numbers. Input: 3 β†’ Output: \n 1 \n 121 \n12321 110.PrintAPyramidPatternWithNumbers.cpp -
111 Print Alternating 0s and 1s Easy Patterns, Loops Print a pattern of alternating 0s and 1s. Input: 3 β†’ Output: \n0 1 0 \n1 0 1 \n0 1 0 111.PrintAlternating0sAnd1s.cpp -
112 Print Pascal’s Triangle Medium Math, Patterns Print Pascal’s Triangle up to a given number of rows. Input: 3 β†’ Output: \n 1 \n 1 1 \n1 2 1 112.PrintPascalsTriangle.cpp -
113 Print Consecutive Numbers Matrix Easy Patterns, Loops Print a square matrix with consecutive numbers. Input: 3 β†’ Output: \n1 2 3 \n4 5 6 \n7 8 9 113.PrintConsecutiveNumbersMatrix.cpp -
114 Print Increasing Width Star Pattern Easy Patterns, Loops Print a star pattern with increasing width. Input: 3 β†’ Output: \n* \n** \n*** \n** \n* 114.PrintIncreasingWidthStarPattern.cpp -
115 Print Right Angle Triangle with Characters Easy Patterns, Loops Print a right-angle triangle with characters. Input: 3 β†’ Output: \nA \nB B \nC C C 115.PrintRightAngleTriangleWithCharacters.cpp -
116 Print Checkerboard Pattern Easy Patterns, Loops Print a checkerboard pattern using stars and spaces. Input: 3 β†’ Output: \n* * * \n * * * \n* * * 116.PrintCheckerboardPattern.cpp -
117 Print Pyramid Pattern of Increasing Stars Easy Patterns, Loops Print a pyramid pattern where each row increases in stars. Input: 3 β†’ Output: \n * \n *** \n***** 117.PrintPyramidPatternOfIncreasingStars.cpp -
118 Print Border Pattern with Numbers Medium Patterns, Loops Print a border pattern using numbers. Input: 3 β†’ Output: \n1 1 1 \n1 2 1 \n1 1 1 118.PrintBorderPatternWithNumbers.cpp -
119 Print Inverted Pyramid Pattern with Characters Medium Patterns, Loops Print an inverted pyramid pattern using characters. Input: 3 β†’ Output: \nC C C \nB B \nA 119.PrintInvertedPyramidPatternWithCharacters.cpp -
120 Print Cross Pattern with Stars Medium Patterns, Loops Print a cross pattern using stars. Input: 3 β†’ Output: \n* * \n * * \n * \n * * \n* * 120.PrintCrossPatternWithStars.cpp -
121 Print Spiral Matrix Hard Arrays, Loops Print a matrix in a spiral order. Input: 3x3 β†’ Output: 1 2 3 6 9 8 7 4 5 121.PrintSpiralMatrix.cpp -
122 Print Diamond Pattern Increasing Width Medium Patterns, Loops Print a diamond pattern with increasing width. Input: 3 β†’ Output: \n * \n *** \n***** \n *** \n * 122.PrintDiamondPatternIncreasingWidth.cpp -
123 Print Diamond Pattern with Numbers Increasing Medium Patterns, Loops Print a diamond pattern using increasing numbers. Input: 3 β†’ Output: \n 1 \n 2 2 \n3 3 3 \n 2 2 \n 1 123.PrintDiamondPatternWithNumbersIncreasing.cpp -
124 Print Increasing and Decreasing Stars Medium Patterns, Loops Print a pattern where stars increase and then decrease. Input: 3 β†’ Output: \n* \n** \n*** \n** \n* 124.PrintIncreasingAndDecreasingStars.cpp -
125 Print Zigzag Matrix Hard Arrays, Loops Print a zigzag traversal of a matrix. Input: 3x3 β†’ Output: 1 2 3 6 5 4 7 8 9 125.PrintZigzagMatrix.cpp -
126 Print Alternating Character Rows Easy Patterns, Loops Print rows with alternating characters. Input: 3 β†’ Output: \nA A A \nB B B \nC C C 126.PrintAlternatingCharacterRows.cpp -
127 Print Number Pyramid with Characters Medium Patterns, Loops Print a pyramid with numbers represented as characters. Input: 3 β†’ Output: \n A \n B B \nC C C 127.PrintNumberPyramidWithCharacters.cpp -
128 Print Diagonal Lines with Characters Medium Patterns, Loops Print diagonal lines using characters. Input: 3 β†’ Output: \nA \n B \n C 128.PrintDiagonalLinesWithCharacters.cpp -
129 Print Diamond Matrix with Numbers Hard Arrays, Patterns Print a matrix with a diamond pattern of numbers. Input: 3 β†’ Output: \n 1 \n 2 2 \n3 3 3 \n 2 2 \n 1 129.PrintDiamondMatrixWithNumbers.cpp -
130 Print Cross Pattern with Diagonals Hard Patterns, Loops Print a cross pattern with diagonal elements. Input: 3 β†’ Output: \nX X \n X X \n X \n X X \nX X 130.PrintCrossPatternWithDiagonals.cpp -
131 Print Triangular Matrix with Numbers Medium Arrays, Patterns Print a triangular matrix using numbers. Input: 3 β†’ Output: \n1 \n2 3 \n4 5 6 131.PrintTriangularMatrixWithNumbers.cpp -
132 Print Star Pattern Increasing & Decreasing Width Medium Patterns, Loops Print a star pattern that first increases and then decreases in width. Input: 3 β†’ Output: \n* \n** \n*** \n** \n* 132.PrintStarPatternIncreasingDecreasingWidth.cpp -
133 Print Nested Squares Pattern Hard Patterns, Loops Print a pattern of nested squares. Input: 3 β†’ Output: \n**** \n* * \n**** 133.PrintNestedSquaresPattern.cpp -
134 Print Increasing Characters in Columns Easy Patterns, Loops Print columns with increasing characters. Input: 3 β†’ Output: \nA B C \nA B C \nA B C 134.PrintIncreasingCharactersInColumns.cpp -
135 Print Matrix with Spiral Diagonals Hard Arrays, Patterns Print a matrix where diagonals form a spiral pattern. Input: 3x3 β†’ Output: Spiral Diagonal Matrix 135.PrintMatrixWithSpiralDiagonals.cpp -
136 Print Checkerboard Pattern Increasing Size Medium Patterns, Loops Print a checkerboard pattern where size increases. Input: 3 β†’ Output: \n* * * \n * * \n* * * 136.PrintCheckerboardPatternIncreasingSize.cpp -
137 Print Cross Pattern Increasing Size Medium Patterns, Loops Print a cross pattern where the size increases. Input: 3 β†’ Output: Cross Pattern 137.PrintCrossPatternIncreasingSize.cpp -
138 Print Alternating Triangles Pattern Medium Patterns, Loops Print alternating triangle patterns. Input: 3 β†’ Output: \n* \n** \n*** \n** \n* 138.PrintAlternatingTrianglesPattern.cpp -
139 Print Matrix with Diamond Numbers Hard Arrays, Patterns Print a matrix where numbers form a diamond pattern. Input: 3 β†’ Output: Diamond Matrix 139.PrintMatrixWithDiamondNumbers.cpp -
140 Print Star Pattern Increasing Width Centered Medium Patterns, Loops Print a centered star pattern where width increases. Input: 3 β†’ Output: \n * \n *** \n***** 140.PrintStarPatternIncreasingWidthCentered.cpp -
141 Print Spiral and Zigzag Pattern Hard Arrays, Patterns Print a matrix with a spiral and zigzag pattern. Input: 4 β†’ Output: Spiral & Zigzag Matrix 141.PrintSpiralAndZigzagPattern.cpp -
142 Print Alternating Characters Matrix Medium Patterns, Loops Print a matrix with alternating characters. Input: 3 β†’ Output: \nA B A \nB A B \nA B A 142.PrintAlternatingCharactersMatrix.cpp -
143 Print Nested Triangles Pattern Medium Patterns, Loops Print nested triangles in a pattern. Input: 3 β†’ Output: Nested Triangle 143.PrintNestedTrianglesPattern.cpp -
144 Print Matrix Increasing Rows & Columns Medium Arrays, Patterns Print a matrix where rows and columns increase. Input: 3 β†’ Output: \n1 2 3 \n4 5 6 \n7 8 9 144.PrintMatrixIncreasingRowsColumns.cpp -
145 Print Rows Increasing Characters Medium Patterns, Loops Print rows where characters increase. Input: 3 β†’ Output: \nA \nA B \nA B C 145.PrintRowsIncreasingCharacters.cpp -
146 Print Diamond Shape Numbers Hard Patterns, Loops Print a diamond pattern using numbers. Input: 3 β†’ Output: Diamond Number Pattern 146.PrintDiamondShapeNumbers.cpp -
147 Print Cross Pattern Numbers Medium Patterns, Loops Print a cross pattern using numbers. Input: 3 β†’ Output: Cross Number Pattern 147.PrintCrossPatternNumbers.cpp -
148 Print Concentric Squares Pattern Hard Patterns, Loops Print concentric squares in a pattern. Input: 3 β†’ Output: Concentric Squares 148.PrintConcentricSquaresPattern.cpp -
149 Print Alternating Rows & Columns Numbers Medium Patterns, Loops Print a matrix where rows and columns alternate with numbers. Input: 3 β†’ Output: Alternating Numbers 149.PrintAlternatingRowsColumnsNumbers.cpp -
150 Print Zigzag Pattern with Stars Medium Patterns, Loops Print a zigzag pattern using stars. Input: 3 β†’ Output: Zigzag Star Pattern 150.PrintZigzagPatternStars.cpp -