Solve any Pattern Question - Trick Explained | 22 Patterns in 1 Shot | Strivers A2Z DSA Course

preview_player
Показать описание


Practice the patterns here:

In case you are thinking to buy courses, please check below:

You can follow me across social media, all my handles are below:

Intro: 0:00
BuildUp Logical Thinking w/ patterns: 0:20
Pattern_01: 1:34
4 Rules for solving patterns: 2:24
Pattern_02: 14:17
Pattern_03: 17:33
Pattern_04: 19:53
Pattern_05: 21:00
Pattern_06: 23:39
Pattern_07: 24:33
Pattern_08: 31:10
Pattern_09: 34:16
Pattern_10: 35:12
Pattern_11: 39:22
Pattern_12: 42:15
Pattern_13: 46:52
Pattern_14: 48:42
Pattern_15: 50:57
Pattern_16: 53:03
Pattern_17: 54:42
Pattern_18: 59:45
Pattern_19: 1:01:28
Pattern_20: 1:06:36
Pattern_21: 1:12:29
Pattern_22: 1:15:41
Request!!: 1:21:17
Рекомендации по теме
Комментарии
Автор

Let's march ahead, and create an unmatchable DSA course! ❤

Do consider to give us a like, and a subscribe, means a world to us..

takeUforward
Автор

Tip:
When you're printing spaces in a pattern, replace the space with any other symbol like this "-", it helps in understanding what we are doing.

sachinboreoffl
Автор

I was losing confidence in my DSA skills after being away for so long. This video sharpened my thinking as well as brought back that confidence. Thanks a lot !!

sumitapathak
Автор

Intro: 0:00
BuildUp Logical Thinking w/ patterns: 0:20
Pattern_01: 1:34
4 Rules for solving patterns: 2:24
Pattern_02: 14:17
Pattern_03: 17:33
Pattern_04: 19:53
Pattern_05: 21:00
Pattern_06: 23:39
Pattern_07: 24:33
Pattern_08: 31:10
Pattern_09: 34:16
Pattern_10: 35:12
Pattern_11: 39:22
Pattern_12: 42:15
Pattern_13: 46:52
Pattern_14: 48:42
Pattern_15: 50:57
Pattern_16: 53:03
Pattern_17: 54:42
Pattern_18: 59:45
Pattern_19: 1:01:28
Pattern_20: 1:06:36
Pattern_21: 1:12:29
Pattern_22: 1:15:41
Like!!: 1:21:17

muhsin.k
Автор

In Pattern18, we should not hardcode the value 'E', It should be dynamic.

void pattern_18(int n) {
for (int i=0; i<n; i++) {
char ch = 'A';
ch = ch + (n -i -1);
for (int j=0; j<=i; j++) {
cout << ch;
ch ++;
}
cout << endl;
}
}

rajeshvarma
Автор

whoever found the logic for the pattern 22 must be an alien.

gunasekarb
Автор

Bhaiya learning DSA from your AtoZ sheet . i am in final year I can't thank you enough for bring light in my dark future..when everyone is saying that "tumse an ho payega "I finally decided that "ab mujhse hi ho payega" thank you bhaiya .and please agle 3 month take intermediate level ka DSA sikha do.

nisha
Автор

Hey Striver. I just discovered you today. Your explanations are great. I'm enjoying your content. But more than that - I love your energy and your enthusiasm! ⚡Thank you!

george_bullock
Автор

saw a lot of videos before to understand pattern 22. But never got it. The way you solved it!!! What can I say. We owe you big time brother.

md.ualiurrahmanrahat
Автор

last pattern is mind blowing!!! hard to get that logic at first sight.

chiragPatelc
Автор

Literally, breaking whole concepts into 3 steps really really help me as beginner to understand patterns. Thankyou striver b :)

Cvx_ishere
Автор

HAPPY NEW YEAR SIR
HAVE A GREAT YEAR AHEAD
AND WE ARE VERY GLAD TO GET THE HELPING PERSON LIKE YOU FOR BEGINERS LIKE US.

spdks
Автор

Thank You, we are all hooked up. This is gonna be a Great Series.

Manish-wkni
Автор

you are an inspiration for programming faternity! loved the way you teach. The ease with which you have taught recursion and dp is commendable. i get to learn every day from you. Thank you for being light in lives of programmers.

nehathakur
Автор

The best video on solving patterns on YouTube! Can't thank you enough!!!😀😀

tusharkumar
Автор

for code 14 we can also try :🙂
for(int i=1;i<=n;i++) {
char ch='A';
for(int j=1;j<=i;j++) {
cout<<ch;
ch++;
}cout<<endl;
}

eleveneleven
Автор

Thank you for this logic-building lecture. I'm feeling confident about pattern questions.

anil-chaturvedi
Автор

The last pattern took me some time but I just figured it out and i'm so happy 🧠🤯. Such a great feeling😊. Thank you Striver for this amazing content.

ramfattah
Автор

very valuable course bhaiya ...no one in the entire youtube has explain the DSA like you ...the way you explain 😍

trishanksharma
Автор

Thanks for the great content ❤
@tip for the pattern 18 the logic in the video is hardcoded for 'E' letter alone . Kindly utilize the below solution.

void alphaTriangle(int n) {
for(int i=0;i<n;i++){
//based on the input we are seeting the initial value.
char letter='A'+n-1;
for(int j=0;j<=i;j++){
cout<<letter<<" ";
letter--;
}
cout<<endl;
}
}


if n=3 means its starts from C, n=4 means D and so on continues.

raavanan