Skip to content

Commit 8ee3eab

Browse files
authored
Create PatternQuestions.md
adding pattern questions
1 parent 06d7ed5 commit 8ee3eab

File tree

1 file changed

+307
-0
lines changed

1 file changed

+307
-0
lines changed

PatternQuestions.md

Lines changed: 307 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,307 @@
1+
## All Pattern Questions - ⭐ Star | 🔢 Number | 🔠 Alphabet
2+
3+
### Ninja Steps to Make Any Pattern 😅
4+
1) Outer Loop => Responsible for Rows | No. of lines printing Horizontally.
5+
2) Inner Loop => Responsible for Colms | No. of Elements printing Vertically.
6+
3) Check the Value which u need to print - ⭐ Star, 🔢 Number, 🔠 Alphabet.
7+
4) Check is any relation btw Rows & Colms.
8+
5) Check which order is following in the pattern **( 🔢 Number | 🔠 Alphabet )**
9+
6) Think 🤔, Is this pattern can be formed by mixing other patterns. **(only when you have failed in 4th & 5th step )**
10+
11+
#### SQUARE Patterns
12+
```text
13+
1.1 * * * * *
14+
* * * * *
15+
* * * * *
16+
* * * * *
17+
* * * * *
18+
19+
1.2 1 2 3 4 5
20+
1 2 3 4 5
21+
1 2 3 4 5
22+
1 2 3 4 5
23+
1 2 3 4 5
24+
25+
1.3 A B C D E
26+
A B C D E
27+
A B C D E
28+
A B C D E
29+
30+
```
31+
32+
#### Right Trianlge
33+
```text
34+
2.1 *
35+
* *
36+
* * *
37+
* * * *
38+
* * * * *
39+
40+
2.2 1
41+
1 2
42+
1 2 3
43+
1 2 3 4
44+
1 2 3 4 5
45+
46+
2.3 1
47+
2 3
48+
4 5 6
49+
7 8 9 10
50+
11 12 13 14 15
51+
52+
2.4 A
53+
B C
54+
D E F
55+
G H I J
56+
k L N N O
57+
58+
2.5 E
59+
D E
60+
C D E
61+
B C D E
62+
A B C D E
63+
64+
2.6 1
65+
0 1
66+
1 0 1
67+
0 1 0 1
68+
1 0 1 0 1
69+
```
70+
71+
#### Reverse Right Trianlge
72+
```text
73+
74+
3.1 * * * * *
75+
* * * *
76+
* * *
77+
* *
78+
*
79+
80+
3.2 1 2 3 4 5
81+
1 2 3 4
82+
1 2 3
83+
1 2
84+
1
85+
86+
3.3 1 1 1 1 1 1
87+
2 2 2 2 2
88+
3 3 3 3
89+
4 4 4
90+
5 5
91+
6
92+
93+
3.4 E D C B A
94+
D C B A
95+
C B A
96+
B A
97+
A
98+
99+
```
100+
#### Trianlge
101+
```text
102+
103+
4.1 *
104+
* *
105+
* * *
106+
* * * *
107+
* * * * *
108+
* * * *
109+
* * *
110+
* *
111+
*
112+
113+
4.2 1
114+
1 2
115+
1 2 3
116+
1 2 3 4
117+
1 2 3 4 5
118+
1 2 3 4
119+
1 2 3
120+
1 2
121+
1
122+
123+
```
124+
#### Right Triangle Mirror Image | Space + ⭐ |🔠 | 🔢
125+
```text
126+
127+
128+
5.1 *
129+
* *
130+
* * *
131+
* * * *
132+
* * * * *
133+
134+
5.2 *
135+
* *
136+
* * *
137+
* * * *
138+
* * * * *
139+
140+
141+
5.3 1
142+
2 1 2
143+
3 2 1 2 3
144+
4 3 2 1 2 3 4
145+
5 4 3 2 1 2 3 4 5
146+
147+
5.4 1
148+
1 1
149+
1 2 1
150+
1 3 3 1
151+
1 4 6 4 1
152+
153+
```
154+
#### Reverse Right Triangle Mirror Image | Space + ⭐ |🔠 | 🔢
155+
```text
156+
157+
6.1 * * * * *
158+
* * * *
159+
* * *
160+
* *
161+
*
162+
163+
6.2 * * * * *
164+
* * * *
165+
* * *
166+
* *
167+
*
168+
169+
6.3 1 2 3 4 5
170+
1 2 3 4
171+
1 2 3
172+
1 2
173+
1
174+
175+
```
176+
#### Hour Glass -⭐ |🔠 | 🔢
177+
```text
178+
179+
1. * * * * *
180+
* * * *
181+
* * *
182+
* *
183+
*
184+
*
185+
* *
186+
* * *
187+
* * * *
188+
* * * * *
189+
190+
191+
```
192+
#### Other ⭐ Patterns
193+
```text
194+
195+
1. ****
196+
* *
197+
* *
198+
* *
199+
****
200+
201+
2. *
202+
* *
203+
* *
204+
* *
205+
*********
206+
207+
208+
3. *********
209+
* *
210+
* *
211+
* *
212+
*
213+
214+
4. *****
215+
* *
216+
* *
217+
* *
218+
*****
219+
220+
5. *
221+
* *
222+
* *
223+
* *
224+
* *
225+
* *
226+
* *
227+
* *
228+
*
229+
230+
```
231+
#### Important Patterns - CHALLENGE
232+
```text
233+
234+
1. 1
235+
212
236+
32123
237+
4321234
238+
32123
239+
212
240+
1
241+
242+
243+
2. 1 1
244+
1 2 2 1
245+
1 2 3 3 2 1
246+
1 2 3 4 4 3 2 1
247+
248+
3. 4 4 4 4 4 4 4
249+
4 3 3 3 3 3 4
250+
4 3 2 2 2 3 4
251+
4 3 2 1 2 3 4
252+
4 3 2 2 2 3 4
253+
4 3 3 3 3 3 4
254+
4 4 4 4 4 4 4
255+
256+
257+
4. **********
258+
**** ****
259+
*** ***
260+
** **
261+
* *
262+
* *
263+
** **
264+
*** ***
265+
**** ****
266+
**********
267+
268+
269+
5. * *
270+
** **
271+
*** ***
272+
**** ****
273+
**********
274+
**** ****
275+
*** ***
276+
** **
277+
* *
278+
279+
280+
6. * *
281+
** **
282+
* * * *
283+
* * * *
284+
* ** *
285+
* ** *
286+
* * * *
287+
* * * *
288+
** **
289+
* *
290+
291+
292+
7. *
293+
* *
294+
* * *
295+
* * * *
296+
* * * * *
297+
* * * *
298+
* * *
299+
* *
300+
*
301+
302+
8. *
303+
* * *
304+
* * * * *
305+
* * * * * * *
306+
* * * * * * * * *
307+
```

0 commit comments

Comments
 (0)