Lecture 4: Solving Pattern Questions (Part-2)

Поделиться
HTML-код
  • Опубликовано: 5 янв 2025

Комментарии • 3,8 тыс.

  • @muzamilahmed3127
    @muzamilahmed3127 9 месяцев назад +7

    32:27
    You can also use
    int i = 1;
    int j = 1;
    char k = 'A';
    while(i

  • @ardent630
    @ardent630 Год назад +115

    I found it very challenging at first..I'll practice them as much as i can for getting a grip and keep revising these important and brainstorming questions.Thankyou babbar bhaiya ,you are helping us children a lot with your videos.

  • @vent_down_
    @vent_down_ 2 года назад +451

    Pattern Problem 17:50
    Code N Explanation
    => Code :-
    int n;
    cin>>n;
    int i=1;
    while(i

  • @BruceWayne-f7u
    @BruceWayne-f7u Год назад +6

    21:47 You dont need to put +1 in (i-j+1) if you initialise j with 0 and put j

  • @sakshamaggarwal245
    @sakshamaggarwal245 9 месяцев назад +18

    for 36:00 this seems a better approach
    int n;
    cin >> n;
    int i=1;
    char ch = 'A';
    while(i

  • @sujalsharma7508
    @sujalsharma7508 2 года назад +49

    This is how completed the DABANGG pattern question (breaking it into 4 parts for a better understanding). Thanks a lot Babbar Sir for making the playlist of this course❤
    #include
    using namespace std;
    int main(){
    int n,i=1;
    cin>>n;

    //first triangle
    while(i

    • @RishabhMehta-b4k
      @RishabhMehta-b4k 7 месяцев назад +1

      Genius

    • @asadkhrd2218
      @asadkhrd2218 6 месяцев назад +4

      My code for dabangg pattern (Sorry it's in Python)
      def pattern(no):
      for i in range(1,no+1):
      for j in range(1,no+1-(i-1)):
      print(f"{j}",end="")
      print("*"*((i*2)-2), end="")
      for k in range(no-(i-1),0,-1):
      print(f"{k}",end="")
      print("")
      no = int(input("Enter the number: "))
      pattern(no)

    • @mohdhammadansari9767
      @mohdhammadansari9767 6 месяцев назад

      excellent

  • @tanzeelahmed2055
    @tanzeelahmed2055 3 года назад +70

    Programming is not so difficult but with the right explanation. It turns out programming is just fun learning it from you.

  • @Atharvsp1809
    @Atharvsp1809 Год назад +5

    sach mai bhai bohot madat ho rahi hai solution dekhane se pehele jab question try kar ke sahi ho raha hai tab alag hi khushi ho rahi hai

  • @ankur4140
    @ankur4140 2 года назад +28

    Thank You Love Bhaiya, because of this video I learnt about pattern programming and recently got placed in Webkul. In their placement process their first round was of a hard level pattern programming question, and they gave 60 minutes to solve that one question, I was able to solve it in 40min, all thanks to you.
    Out of around 80 students only 6 were able to solve the patterns and moved to the second round and I was one of them, and then eventually cleared the technical and HR round which were easy.

  • @engineerbae1026
    @engineerbae1026 3 года назад +186

    Pattern's Timestamps:-
    Pattern 3 : 0:25
    Pattern 4 : 2:36
    Pattern 5 : 5:09
    Pattern 6 : 7:48
    Pattern 7 : 10:19
    Pattern 8 : 13:06
    Pattern 9 : 13:43
    Pattern 10 : 17:57
    Pattern 11 : 22:43
    Pattern 12 : 22:47
    Pattern 13 : 28:57
    Pattern 14 : 29:55
    Pattern 15 : 33:48
    Pattern 16 : 37:52
    Pattern 17 : 38:44
    Pattern 18 : 41:55
    Pattern 14's Easy Approach : 47:02
    Pattern 19 : 47:31
    Pattern 20 : 51:42
    Pattern 21 : 52:56
    Pattern 22 : 53:49
    Pattern 23 : 54:01
    Pattern 24 : 54:13
    Pattern 25 : 54:28
    Pattern 26 : 54:51
    Pattern 27 : 1:01:09 ( Dabangg Pattern )

    • @youngneo
      @youngneo 3 года назад +6

      Thank you 😌🙏

    • @iUmerFarooq
      @iUmerFarooq 3 года назад +3

      You also have to mention which one is home work.
      Thanks for hard work.

    • @engineerbae1026
      @engineerbae1026 3 года назад +3

      @@iUmerFarooq Homework timestamps are already given by love babbar

    • @rameshmalhotra9525
      @rameshmalhotra9525 3 года назад

      ruclips.net/video/p4-xSbXvWII/видео.html

    • @abbas09khan
      @abbas09khan 2 года назад +2

      @@iUmerFarooq nice name bro

  • @Princekumar-kg8vn
    @Princekumar-kg8vn Год назад +15

    13:39
    int n;
    cin>>n;
    int i = 1;
    int count = 1;
    while(i

  • @nandaydas8670
    @nandaydas8670 3 года назад +12

    16:00 this problem can be also done like this:
    while(row

    • @rahulnikam1279
      @rahulnikam1279 3 года назад +5

      Wrong method bro, he said not to use any other variable except row, col and n...
      this is the solution ...
      int row = 1;
      while(row

    • @Manoj_Jadhav.12
      @Manoj_Jadhav.12 3 года назад +1

      @@rahulnikam1279 thanks

    • @aasifali9139
      @aasifali9139 3 года назад +2

      @@rahulnikam1279 nice solution bro.

    • @ObserverGuy
      @ObserverGuy 3 года назад +1

      @@rahulnikam1279 thanks bro, sadly I was not able to solve this.

    • @rahulnikam1279
      @rahulnikam1279 3 года назад

      @@Manoj_Jadhav.12 welcome bro❣❣

  • @Princekumar-kg8vn
    @Princekumar-kg8vn Год назад +3

    28:53
    int n;
    cin>>n;
    int row = 1;
    while(row

  • @lalitbisht8381
    @lalitbisht8381 Год назад +13

    17:47 HOMEWORK
    Without taking any variable
    Start col loop from col=0
    While(col < n)
    cout

    • @minecraftcookie2929
      @minecraftcookie2929 10 месяцев назад +2

      will not work perfectly as for the first iteration row = 1 and column = 1 and that should give 2 so that is not correct it will be (row+column) - 1

    • @satyamchikane6226
      @satyamchikane6226 10 месяцев назад +1

      @@minecraftcookie2929 take row= 1 & col = 0 and print row+col

    • @varunsaigs9815
      @varunsaigs9815 10 месяцев назад

      For this pattern, we can do like this also!! Right??
      D
      C D
      B C D
      A B C D
      i=1,j=1;
      While (i

    • @Webkaadda
      @Webkaadda 9 месяцев назад

      @@minecraftcookie2929
      int n;
      cout n;
      for (int i = 0; i

    • @minecraftcookie2929
      @minecraftcookie2929 9 месяцев назад

      @@Webkaadda maine glt kya bola

  • @prernapriya8699
    @prernapriya8699 3 года назад +65

    This course is just amazing it helps a lot in students placement...ur r dining just amazing bahiya....

  • @deepakbehera2979
    @deepakbehera2979 2 года назад +10

    52:50. Formula
    Int star=n-row+1;
    While(col

  • @UMESH-lj3ye
    @UMESH-lj3ye 12 дней назад

    20:00 we use direct use for (j>=1)
    i=1;
    while(i = 1){
    cout

  • @shwetagupta3198
    @shwetagupta3198 3 года назад +11

    Done with this lecture..😍
    Solved all the questions and ab toh alag hi level confidence aara hai patterns me🙃
    Thank you for making it happen Bhaiya..🤗

  • @chhotumarandi1419
    @chhotumarandi1419 2 года назад +43

    Finaly Solved #DABBANG Pattern
    before I was can't solve even one question of patterns but after this lectures now
    I feel confident.
    Thanks Babbar Bhaiya
    #include
    using namespace std;
    int main () {
    int n;
    cin>>n;
    int i = 1;
    while(i

    • @palaraxdopepalarax7753
      @palaraxdopepalarax7753 2 года назад

      #include
      using namespace std;
      int main() {
      int n,i,j;
      cin>>n;
      i=n;
      while(i>=1)
      {
      j=1;
      while(j

    • @samyaksharma4403
      @samyaksharma4403 2 года назад +2

      #include
      using namespace std;
      int main() {
      int n;
      cin>>n;
      for(int i=0;i

    • @sanatanihinduharekrishna
      @sanatanihinduharekrishna 2 года назад

      this can also work,
      #include
      using namespace std;
      int main(){
      #ifndef ONLINE_JUDGE
      freopen("input.txt","r",stdin);
      freopen("output.txt","w",stdout);
      #endif

      int n;
      cin>>n;
      int row=1;
      int t=n;
      while(row

    • @Ben10291
      @Ben10291 2 года назад +3

      we can combine 2nd and 3rd triangle by just
      int star = 2*(i -1);

    • @anuj_chaudhary_2430
      @anuj_chaudhary_2430 Год назад

      @@samyaksharma4403 😇😇

  • @brajnandanku
    @brajnandanku Год назад +3

    @5:45 We can use this formula: cout

    • @adityarai912
      @adityarai912 7 месяцев назад

      how did u find it brother

  • @AzariosTech
    @AzariosTech 2 года назад +12

    1:01:40 (code of last question "Dabangg Pattern" is)
    #include
    using namespace std;
    int main(){
    int row =1;
    int n;
    cin>>n;
    while (row

  • @vinay8946
    @vinay8946 2 года назад +73

    Star Pattern Homework Questions (in between 52:00 - 54:00 timestamp)
    1.
    int main() {
    int n;
    int i =1;
    cin>>n;
    while(i

  • @GaneshKumatole
    @GaneshKumatole Год назад

    46:00
    The expression which I fig. Out is
    char ch= 'A' + n - I + j - 1 ;
    Iss bhi hogaya bhaiya .. (alt.)
    Mazza ah raha hai. .
    Programming op !! 🔥♥️

  • @Anandkumar-ns1rl
    @Anandkumar-ns1rl 3 года назад +42

    This course is just amazing it helps a lot of Students for their improving Problem Solving Skills...ur r doing just amazing bahiya....

  • @akanshaagrawal549
    @akanshaagrawal549 3 года назад +177

    These questions remembering me my College days... When we used to do that patterns... I wanted to start my coding and DSA skills again... and these videos came out... Thankyou for making these kind of series... Now I am enjoying programming again... And doing all the problems into JavaScript...😊

    • @MJSMUTKDER
      @MJSMUTKDER 3 года назад +3

      Yes me too doing all this into js can we code buddy?

    • @akanshaagrawal549
      @akanshaagrawal549 3 года назад +1

      @@MJSMUTKDER Sure... This would help both of us..👍

    • @MJSMUTKDER
      @MJSMUTKDER 3 года назад

      @@akanshaagrawal549 connect with there

    • @MJSMUTKDER
      @MJSMUTKDER 3 года назад

      @@akanshaagrawal549 so plz find my contact details in my channel > about

    • @satyampandey9586
      @satyampandey9586 3 года назад

      @@akanshaagrawal549 mam, are you working professional?

  • @ShikhaKumari-nm2fd
    @ShikhaKumari-nm2fd 10 месяцев назад +1

    21:22 can also be solved by
    int main(){
    int n;
    cin>>n;
    int i;
    i=1;
    while(i

  • @techsifier4570
    @techsifier4570 3 года назад +16

    Thanks sir...for uploading...I was waiting for this... awesome dsa placement course!

  • @navjotkaursidhu4094
    @navjotkaursidhu4094 3 года назад +7

    17:41
    // 8. pattern
    // 1
    // 2 3
    // 3 4 5
    // 4 5 6 7
    // another way to solve this problem
    int n, row=1;
    cin>>n;
    while(row

  • @lalitbisht8381
    @lalitbisht8381 Год назад +2

    That’s insane man
    More than 25+ Pattern program karaye aapne ❤❤❤🔥🔥🔥

  • @drvelocityracerkannada
    @drvelocityracerkannada Год назад +5

    at 29:33 u have said one method to solve that problem by using start but that method will not work , I solved it by my own as a beginner I am so happy with it😊
    problem:
    ABC
    DEF
    GHI
    Solution:
    int main()
    {
    int n;
    cin>>n;
    int row=1;
    int count=1;
    while(row

    • @mukulkansara1907
      @mukulkansara1907 7 месяцев назад +4

      I think it should work
      int main()
      {
      int n;
      cin >> n;
      int row = 1;
      char start = 'A';
      while(row

  • @vishubro99
    @vishubro99 Год назад +3

    40:12 char ch = (A + row - 1);
    Cout

  • @aayushsharma3211
    @aayushsharma3211 7 месяцев назад +1

    31:50 int n;
    cin>>n;

    int i =0;


    while (i

  • @itachi3221
    @itachi3221 2 года назад +8

    45:00 Ques can also be done by using a formula :
    'A' + n - i + j
    n = input
    i = rows
    j = col
    CODE :--
    #include
    using namespace std;
    int main()
    {
    int n;
    cout n;
    int i = 1;
    while (i

  • @AshishKumar-qt5gs
    @AshishKumar-qt5gs 3 года назад +13

    21:00 we can also do this question like previous one, just change value= value + 1 to value= value - 1.

  • @KrishnaSah-k3s
    @KrishnaSah-k3s 5 месяцев назад +2

    52:49 H.W
    int main(){
    int n;
    cin>>n;
    int row =1;
    while(row

  • @yashchauhan7221
    @yashchauhan7221 3 года назад +61

    His hardwork is commendable making videos with this quality and filled with amazing content
    Hats Off Bhaiya ❤️

  • @sudipta_pradhan
    @sudipta_pradhan 3 года назад +22

    Studying from you has always been a dream n now its coming true ❤

  • @yhwabahahahah
    @yhwabahahahah Год назад +1

    at 5:49 ... i think the pattern is 3 x i + j .... where we have to take i = 0 and j = 1 while writing code ... and i < n and j

    • @rebelexorcist2443
      @rebelexorcist2443 9 месяцев назад +1

      instead of 3, you can generalise it with num (n). This way, this formula will hold true for any value of num (n) and you won't need to create count variable. I had come up with this formula when he was telling to use count variable, and was searching in comments if someone else got this too....😄

    • @yhwabahahahah
      @yhwabahahahah 9 месяцев назад

      @@rebelexorcist2443 lol kk ... got it

  • @manavgarg2350
    @manavgarg2350 2 года назад +6

    17:16
    Pattern:
    1
    23
    345
    4567
    without using value variable,
    use the formula, (row + col -1)
    Code:
    int main(){
    int n;
    cin>>n;
    int i=1;
    while(i

  • @visheshkaran7083
    @visheshkaran7083 3 года назад +54

    Thank you soo much bhaiya. I'm in third year I was so worried about DSA and suddenly you dropped a video about the course and seeing you upload videos regularly gives me motivation. Thank you soo much 💓

    • @awnishprasad9367
      @awnishprasad9367 Год назад

      right now you are in forth year

    • @Quavo-goa
      @Quavo-goa 10 месяцев назад

      so did u complete the series an dget placed? genuine question

    • @visheshkaran7083
      @visheshkaran7083 10 месяцев назад

      @@Quavo-goa yes bro, I've completed the series and yes I got the placement and majority of the credit goes to this DSA series.

    • @itsvoltff3174
      @itsvoltff3174 10 месяцев назад

      @@visheshkaran7083 like what's your base pay

  • @debanshupanigrahy5563
    @debanshupanigrahy5563 2 месяца назад

    for 17:50
    int n;
    cin>>n;
    int row = 1;
    while(row

  • @idonnoe
    @idonnoe 3 года назад +9

    For ques at 42:00 , we can print (n - row + col + 'A' - 1) too. From this, we can infer that row has negative sign cuz row wise, value is decreasing (D-C-B-A) and col has positive sign cuz column wise, value is increasing (A-B-C-D). It's something I noticed, and it may help in understanding other questions too.

    • @itzmranonymous
      @itzmranonymous Год назад

      i too found that logic myself

    • @BruceWayne-f7u
      @BruceWayne-f7u Год назад

      too complex for others to understand + lots of variable used, these long formulas can be avoided by just initialising row/i or/and j/col with 0 instead of 1.

    • @influencerab5918
      @influencerab5918 Год назад

      formula 'A' -i+j+3; this can also be

  • @kabir2190
    @kabir2190 Год назад +63

    aapki wajah se mujhe apni khoyi hui sakti yaad aane lagi hai + god

    • @shradd11
      @shradd11 11 месяцев назад +2

      can relate 🤣

    • @Amit_58412
      @Amit_58412 10 месяцев назад

      Achcha aap bhi Hawa Mein Ud sakte ho😂

  • @JigyashaPatle
    @JigyashaPatle 6 месяцев назад +1

    40:00 int n;
    cin>>n;
    int i = 1;
    char count = 'A';
    while(i

  • @akshitavij2487
    @akshitavij2487 3 года назад +7

    53:38 Homework Solution:
    int n;
    cin>>n;
    int row=1;
    while(row

    • @Antispiral77
      @Antispiral77 3 года назад

      why is increment of space done shouldnt the decrement be done since its decreasing down the row?

    • @AyushSingh-hc3pj
      @AyushSingh-hc3pj 2 года назад

      thanks Akshita for this

    • @ChetanSingh-nitw
      @ChetanSingh-nitw 18 дней назад

      wrong code

  • @sharedme4471
    @sharedme4471 3 года назад +58

    💡All Homework Answers with output ->
    13:20 :
    int raw = 1;
    int col = 1, print = 1;
    while (raw

  • @debanshupanigrahy5563
    @debanshupanigrahy5563 2 месяца назад

    for 42:05
    int n;
    cin>>n;
    int row = 1;
    while(row

  • @prernasharma5736
    @prernasharma5736 3 года назад +93

    I was literally waiting for combined course of C++ with DSA on this platform . And YEAH!! HERE YOU ARE WITH THIS AMAZING COURSE 🥳🥳🥳
    THANK
    YOU
    BHAIYA
    🌼

    • @VARUNSHARMA-ek3yp
      @VARUNSHARMA-ek3yp 3 года назад +2

      ++

    • @_victorsays
      @_victorsays 3 года назад +1

      @Chiku Hey buddy I also doing this but I dont have any partner can we code together

    • @rahulsinghrajput8013
      @rahulsinghrajput8013 2 года назад +1

      @@_victorsays i also finding a coding partner🧐

    • @mrtech5999
      @mrtech5999 Год назад

      ​@@rahulsinghrajput8013I am finding a coding partner too

  • @nikhildhruw6876
    @nikhildhruw6876 2 года назад +21

    Time Stamp: 52:35
    #include
    using namespace std;
    int main(){
    int n;
    cin>>n;
    int i=1;
    while(i

  • @Funlearninghub566
    @Funlearninghub566 2 месяца назад

    Thank you bhaiya🙏🙏 for explaining the concepts very well .I've completed all pattern problems which you had given for homework🤩

  • @nikhilpandeydigital
    @nikhilpandeydigital 3 года назад +13

    it is really a master piece, no need to further wandering here and there for dsa .
    it is amazing.

  • @short._.quotes
    @short._.quotes Год назад +13

    1:01:30 HomeWork Questions
    CODE:
    int n;
    cout

  • @nayangupta5530
    @nayangupta5530 3 месяца назад

    Question at 41:51
    mine worked using the A + i - 1 only
    code :
    int n ;
    cin>>n;
    int i = 1 ;

    while (i

  • @debaditya3609
    @debaditya3609 2 года назад +10

    29:51 Homework Sol:
    #include
    using namespace std;
    int main(){
    int n;
    cin>>n;
    int i = 1;
    char ch = 'A';
    while (i

  • @dwaipayansharma2282
    @dwaipayansharma2282 3 года назад +9

    26:00 can also be done like this and I think it is a bit easier to understand
    int n;
    cin>>n;
    int i = 1;
    char c = 65; //ASCII value of A
    while(i

    • @BeastlyFlash
      @BeastlyFlash 3 года назад +1

      yeah I also did this by doing char c = ' A ' it works

  • @noname1325
    @noname1325 5 месяцев назад

    Pattern 18 : 41:55
    another method is think in perspective of D instead of A
    that implies take first character as D now the formula becomes char ch = 'D' - i + 1; write this formula outside j loop but inside i loop then cout

  • @MJ-zs5jv
    @MJ-zs5jv 2 года назад +4

    One better code at 20:46 can be
    int main()
    {
    int n ;
    cout > n ;
    int row = 1 ;
    while (row

  • @RohitGupta-wk3od
    @RohitGupta-wk3od 2 года назад +10

    32:00
    we can also do
    #include
    using namespace std;
    int main()
    {
    int i=1,n;
    cin>>n;
    while(i

    • @itzmranonymous
      @itzmranonymous Год назад

      yes but you added one more line of code i.e ch=ch+1 , his motive is to use least lines of codes to solve the problem

  • @fnaaz6038
    @fnaaz6038 3 месяца назад

    for 33:27 int main() {
    int n;
    cin >> n;
    int row = 1;
    while (row < n) {
    int col = 1;
    while (col < n) {
    char ch = 'A' + row + col- 2;
    cout

  • @mokshmehan7695
    @mokshmehan7695 Год назад +8

    for the h/w pattern at 17:46, you can use i + j - 1 in the second loop to avoid the usage of second int used there .

  • @devpandya7903
    @devpandya7903 2 года назад +98

    //This would be the thing that would be used other than value (time stamp 17:30 in video)
    /*
    Generic code to print the pattern according to the input:
    if i/p : 3
    o/p:1
    2 3
    3 4 5
    if i/p : 4
    o/p:1
    2 3
    3 4 5
    4 5 6 7

    */
    #include
    using namespace std;
    int main(){
    int n;
    int row=1;
    cin>>n;
    while(row

  • @ahmadhasan7952
    @ahmadhasan7952 Год назад +1

    17:26 alternative way
    int i=1;
    int n;
    cin>>n;
    while (i

  • @ayushmehta2323
    @ayushmehta2323 2 года назад +30

    This would be the thing that would be used other than value (time stamp 17:40 in video)
    #include
    using namespace std;
    int main(){
    int n;
    cin >> n;
    int i =1;
    while (i

  • @omdhyawarneniwar8690
    @omdhyawarneniwar8690 2 года назад +4

    47:10
    Easy approach for Pattern 17
    int row=1;
    while(row

  • @vaishnavi_Prajapati_.
    @vaishnavi_Prajapati_. Год назад +1

    For question at 7:00....
    i=0,1,2,3.....
    j=1,2,3,4....
    Cout

  • @amanhr2427
    @amanhr2427 3 года назад +19

    17:37 Second method to solve this problem
    #include
    using namespace std;
    int main()
    {
    int i=1;
    int n = 4;
    while(i

  • @govindsuryavanshi6653
    @govindsuryavanshi6653 Год назад +4

    Greatest ever DSA series to exist on youtube .Your contribution will be remembered. You're God of DSA for us🙇‍♂

  • @nityamjain9972
    @nityamjain9972 Год назад +2

    home work problem at 17:30
    only change
    cout

    • @Quavo-goa
      @Quavo-goa 10 месяцев назад

      cout

    • @Quavo-goa
      @Quavo-goa 10 месяцев назад

      i guess we have to increment value also no?

  • @siddharthgoswami6662
    @siddharthgoswami6662 Год назад +3

    This is called "Quality content" :)

  • @Facts_Agenda
    @Facts_Agenda 2 года назад +5

    Pattern 3 : 0:25
    Pattern 4 : 2:36
    Pattern 5 : 5:09
    Pattern 6 : 7:48
    Pattern 7 : 10:19
    Pattern 8 : 13:06
    Pattern 9 : 13:43
    Pattern 10 : 17:57
    Pattern 11 : 22:43
    Pattern 12 : 22:47
    Pattern 13 : 28:57
    Pattern 14 : 29:55
    Pattern 15 : 33:48
    Pattern 16 : 37:52
    Pattern 17 : 38:44
    Pattern 18 : 41:55
    Pattern 19 : 47:31
    Pattern 20 : 51:42
    Pattern 21 : 52:56
    Pattern 22 : 53:49
    Pattern 23 : 54:01
    Pattern 24 : 54:13
    Pattern 25 : 54:28
    Pattern 26 : 54:51
    Pattern 27 : 1:01:09
    THANKS LOVE BABBAR BHAIYA FOR THESE AMAZING LECTURES

  • @rohangotnochill
    @rohangotnochill 2 месяца назад

    For 46:00 better approach is cout

  • @nitinverma4210
    @nitinverma4210 Год назад +4

    in the formula obtained at 32:19 , we can use ascii value of 'A' which is 65.
    so our new formula will be char ch= 65+i+j-2; or char ch=63+i+j.

    • @itookashower3485
      @itookashower3485 7 месяцев назад

      how can i do without having adci value of A

  • @amankharwal8612
    @amankharwal8612 3 года назад +9

    Your explaination is amazing, I hope this video reaches every student.

  • @debanshupanigrahy5563
    @debanshupanigrahy5563 2 месяца назад

    for 13:42
    int n;
    cin>>n;
    int row = 1;
    int count = 1;
    while(row

  • @sam8111
    @sam8111 2 года назад +4

    32:57
    alternate solution
    #include
    using namespace std;
    int main()
    {
    int i=1 ;
    char ch ='A';

    while(i

  • @27.nikeshvishwakarma38
    @27.nikeshvishwakarma38 2 года назад +27

    //1:01:42 Dabbang Pattern
    #include
    using namespace std;
    int main()
    {
    int n;
    cin >> n;
    int i = 1;
    while (i

    • @mukulkoli4700
      @mukulkoli4700 Год назад +8

      thanks bro
      but a little suggestion instead of using another loop for 2nd star , u can write "**"
      in 1st star cout..

    • @princegoswami1507
      @princegoswami1507 Год назад

      thanks brother

    • @NimbleVerse321
      @NimbleVerse321 Год назад

      bro can
      int n,m=0;
      cin >> n;
      for(int i=1;i

    • @sribasmaji3330
      @sribasmaji3330 11 месяцев назад

      good but should be space between two star
      @@mukulkoli4700

  • @caDet07
    @caDet07 Год назад

    43:10
    More simpler way:🤞
    include
    using namespace std;
    int main() {
    int n;
    cin>>n;
    int i=1;
    while (i

  • @khushiagarwal8890
    @khushiagarwal8890 3 года назад +10

    Thank you for your part in my learning.....The Best playlist for those who are from a different branch

  • @toeachhisown7
    @toeachhisown7 2 года назад +6

    20:45 could also be done by moving the column loop from row -> 0
    Row from 1 to n
    Column from i to 0 like => int j = i; while (j>0) -> j = j-1;

  • @letsmakeitviral
    @letsmakeitviral 4 месяца назад +1

    finally first time studying till 11 30 just because of this interesting lecture take me 3 hours to complete i also done those last two question by myself. dont no why i am writing this comment but just great lecture usually i dont comment your luck

  • @prathameshpatil2058
    @prathameshpatil2058 3 года назад +19

    This 20 questions + your explanation + self solving really helped me to understand patterns and loops. Dhanyawad bhaiya....

  • @iUmerFarooq
    @iUmerFarooq 3 года назад +12

    *Home Work #9* 54:27
    Question: Print the following Pattern.
    1 2 3 4
    2 3 4
    3 4
    4
    Code
    int main() {
    int n = 4;
    int row = 1;
    while (row

    • @leoved1073
      @leoved1073 2 года назад

      thanks antoine griezmann i was stuck on this question for so long...

    • @bhargavchaturvedi
      @bhargavchaturvedi 2 года назад

      Have you solved the last program ,if yes then PLZZ send me

    • @leoved1073
      @leoved1073 2 года назад

      @@bhargavchaturvedi dabaand pattern???

    • @leoved1073
      @leoved1073 2 года назад

      @@vishalsoni5824 yes i did

  • @Freak6318
    @Freak6318 Год назад +1

    pattern problem 17:50 ;;
    int n;
    cin >> n;
    int row = 1;
    while (row

  • @PrakharRastogi-o2e
    @PrakharRastogi-o2e Год назад +12

    Dabangg pattern solved ✅ 😎
    `
    int main(){
    int n;
    cin >> n; // 5
    int i = 1;
    while (i

    • @ishaanms9194
      @ishaanms9194 Год назад +1

      100% chatgpt answer

    • @PrakharRastogi-o2e
      @PrakharRastogi-o2e Год назад +1

      @@ishaanms9194 no brother 100% my answer. I don't give up that easily

  • @Oliver_johnsonns
    @Oliver_johnsonns 7 месяцев назад +70

    Anyone's there who's doing it rn?

  • @professorx2001
    @professorx2001 2 месяца назад

    17:50
    int n;
    cin>>n;
    int row = 1;
    while (row

  • @shivamjha6580
    @shivamjha6580 3 года назад +16

    Thank you so much bhaiya for starting such an amazing series.....
    I have grasped the concept of patterns completely from your videos and it was mind blowing learning experience for me.. 🙏
    I know that how much effort you're putting in to bring such a brand new content for all the learners out there ❤❤❤❤.
    This is going to be number 1 DSA course on the whole RUclips world 🌎

  • @djdeepakjoshi11
    @djdeepakjoshi11 3 года назад +159

    Bhai, ek pdf m har video k sath thode usi topic se related extra questions v upload karo sath m jisko extra questions bhi practice karne hai uske lie.

    • @AJEETKUMAR-wq7os
      @AJEETKUMAR-wq7os 2 года назад +15

      Yes sir ple use black screen so we can se by easily as white screen reflects more..

  • @Ravirajsingh09
    @Ravirajsingh09 4 месяца назад

    For 30:00 this seems a better approach
    Int row=1;
    While (row

  • @udaykulkarni5639
    @udaykulkarni5639 2 года назад +18

    Dabangg Question :
    You can even simplify this pattern into 4 Parts => Left triangle => Divide the stars Triangle into two halves => Print Right Triangle
    A bit lengthy but simplest approach to understand quickly.
    #include
    using namespace std;
    int main()
    {
    int number;
    cin >> number;
    int row = 1;
    int counter = 1;
    while (row

    • @gauravS_07
      @gauravS_07 8 месяцев назад +1

      Thanks a lot bro. This really helped me .

  • @abhisek1486
    @abhisek1486 Год назад +4

    If you're reading this comment, I'm thankful to you and your materials, which have really helped me, and I would say that this DSA series is enough to land a fresher job in the top MNCs. I've purchased the DSA course, and the content is somewhat similar, but the Babbar bhaiya has solved a lot of questions to make one understand the programming basics. If you think that this course is not enough, I would recommend that you just consistently follow this, and then you will get to know about the quality of this DSA series.

    • @sagarthapliyal828
      @sagarthapliyal828 Год назад

      Hlw bhai jo bhaiya me c++ karaya hai mene aabi dekhna suru liya hai me Dsa bi krna chahata hu kya is course me DSA bi include hai

    • @monuyadav1712
      @monuyadav1712 Год назад

      yes bro full dsa is included
      @@sagarthapliyal828

  • @Nishit_kumar_NITK
    @Nishit_kumar_NITK Год назад +1

    5:59 we can use formula as cout

  • @ronakr1992
    @ronakr1992 3 года назад +7

    This session is very interesting . Thank u so much sir for making this session very interactive.

  • @muskangupta680
    @muskangupta680 2 года назад +37

    For pattern
    1
    2 3
    3 4 5
    4 5 6 7
    Without new variable we can do (row+colum-1) and print this

    • @RishiKumar-ec4of
      @RishiKumar-ec4of 2 года назад +1

      kyaa baat me to kab se socha raha tha acha hua aap ne bata diya ye to mere dimag me aya hi nahi

    • @AkashVerma-dx1er
      @AkashVerma-dx1er 2 года назад +1

      Thanks👍

    • @ingonitoReview
      @ingonitoReview 2 года назад +2

      we cannot use (col+row-1 ) as it will make the loop run for infinite times
      int row = 1;
      while (row

    • @muskangupta680
      @muskangupta680 2 года назад +4

      ​@@ingonitoReview
      int n=4,row=1,col;
      while(row

    • @saranbbx9112
      @saranbbx9112 2 года назад

      Ha bhai ekdam

  • @TheAlgorithm-c5u
    @TheAlgorithm-c5u Год назад +1

    13:39 HW: #include
    using namespace std;
    int main()
    {
    coutn;
    while(row

  • @siriam2137
    @siriam2137 3 года назад +17

    This video series is pure gem in youtube... Thank you so much for putting in so much effort bhaiya😊

  • @TechUprise-by-Jyoti
    @TechUprise-by-Jyoti 3 года назад +24

    Present bhaiya🙋‍♀️ 😇
    Sab log attendance laga do
    👇

  • @lavina8946
    @lavina8946 Год назад +1

    for 17:44
    the other way around is
    int main() {
    int a;
    cin>>a;
    int row = 1;
    while(row

    • @pankajnayak1023
      @pankajnayak1023 7 месяцев назад

      Thankyou I am practicing most of time but I can't find it😢

  • @a.nmolll
    @a.nmolll 3 года назад +5

    22:50 this pattern can also be achieved by this method :-
    #include
    using namespace std;
    int main()
    {
    int row=1;
    int n;
    cin>>n;
    int ch='A';
    while(row

  • @chiragmakhija5462
    @chiragmakhija5462 3 года назад +14

    53:45 Solution
    #include
    using namespace std;
    int main() {
    int n;
    cin>>n;
    int row =1;
    while(row

    • @usersb685
      @usersb685 2 года назад

      instead of these code u use
      #include
      using namespace std;
      int main()
      {
      int r;
      cin >> r;
      for (int i = 0; i < r; i++)
      {
      for (int j = 0; j < r; j++)
      {
      if (j < i)
      {
      cout

    • @homamahmad7859
      @homamahmad7859 7 месяцев назад

      Thank you so much 🎉
      I got stucked in this question for almost an hour

    • @Keshav2005a
      @Keshav2005a 6 месяцев назад +1

      Why space is decreasing here please tell me

    • @Keshav2005a
      @Keshav2005a 6 месяцев назад

      @@homamahmad7859 why space is decreasing here

    • @DominiK037
      @DominiK037 5 месяцев назад

      @@Keshav2005a to get out of the while loop, after printing the space for (row-1) times every time we are entering a new row