You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All Pattern Questions - ⭐ Star | 🔢 Number | 🔠 Alphabet
Ninja Steps to Make Any Pattern 😅
Outer Loop => Responsible for Rows | No. of lines printing Horizontally.
Inner Loop => Responsible for Colms | No. of Elements printing Vertically.
Check the Value which u need to print - ⭐ Star, 🔢 Number, 🔠 Alphabet.
Check is any relation btw Rows & Colms.
Check which order is following in the pattern ( 🔢 Number | 🔠 Alphabet )
Think 🤔, Is this pattern can be formed by mixing other patterns. (only when you have failed in 4th & 5th step )
SQUARE Patterns
1.1 * * * * *
* * * * *
* * * * *
* * * * *
* * * * *
1.2 1 2 3 4 5
1 2 3 4 5
1 2 3 4 5
1 2 3 4 5
1 2 3 4 5
1.3 A B C D E
A B C D E
A B C D E
A B C D E
Right Trianlge
2.1 *
* *
* * *
* * * *
* * * * *
2.2 1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
2.3 1
2 3
4 5 6
7 8 9 10
11 12 13 14 15
2.4 A
B C
D E F
G H I J
k L N N O
2.5 E
D E
C D E
B C D E
A B C D E
2.6 1
0 1
1 0 1
0 1 0 1
1 0 1 0 1
Reverse Right Trianlge
3.1 * * * * *
* * * *
* * *
* *
*
3.2 1 2 3 4 5
1 2 3 4
1 2 3
1 2
1
3.3 1 1 1 1 1 1
2 2 2 2 2
3 3 3 3
4 4 4
5 5
6
3.4 E D C B A
D C B A
C B A
B A
A