4.2 Advanced Pattern Questions in C++ | Guaranteed Placement Course | Lecture 4.2

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

Комментарии • 1,2 тыс.

  • @ApnaCollegeOfficial
    @ApnaCollegeOfficial  4 года назад +532

    If you are preparing for college placement then you should go with C++ Language. Many companies would not allow you to code in Python. Make sure you check the notes and extra practice questions given in the description box.

    • @ApnaCollegeOfficial
      @ApnaCollegeOfficial  4 года назад +83

      Python will be uploaded for Class 12 Computer Science students who are preparing for Boards.

    • @glitched_matrix44
      @glitched_matrix44 4 года назад +12

      @@ApnaCollegeOfficial Will that include 11th syllabus & basics also?

    • @prayanshusinghIITBHU
      @prayanshusinghIITBHU 4 года назад +18

      Please make a DSA series for CP+Placements in C++. Please bhaiya!

    • @pratyakshraj2859
      @pratyakshraj2859 4 года назад +4

      Sir electro chem ka agla lecture kab aa raha h?????

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

      @@ApnaCollegeOfficial ok bahiya

  • @shreyaschavhan5522
    @shreyaschavhan5522 4 года назад +370

    Wanted to revise Palindrome Pattern! --- Couldn't recall where it was! --- Searched both videos! --- Time Stamped Both --- Saved your time During Revisions!
    Thanks Me later [LOL]
    1. Inverted Pattern - [0:07]
    2. 0 - 1 pattern - [3:05]
    3. Rhombus Pattern - [6:46]
    4. Number Pattern - [9:38]
    5. Palindromic Pattern - [12:40]
    6. Star Pattern - [18:05]
    7. Zig-Zag Pattern - [23:18]

  • @amritnalam9994
    @amritnalam9994 4 года назад +144

    I'm trying them on my own first and then watching the solutions. Thank you for this series!

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

      How to type that OR symbol at 26:51

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

      @@satyabratojha1335 shift+\ ,this "\" you will find below backspace

    • @Progamer-fq8st
      @Progamer-fq8st 3 года назад +1

      @@satyabratojha1335 You can also just write or

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

      nobody cares

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

      Sometimes my solution is different from what is provided in video and mine's look complex to understand at first glance.
      Is it okay?

  • @jayanthchintala3496
    @jayanthchintala3496 3 года назад +32

    In the palindromic pattern question, for those who are facing trouble with spaces in their computer, try using double space instead of single space in the first j loop and the rest remains the same. You can try it with other patterns too if the pattern is getting distorted while using spaces.

  • @memesick4ever
    @memesick4ever 2 года назад +20

    For the pattern at 3:06 you can also do this which is more simpler
    #include
    using namespace std;
    int main()
    {
    int n;
    cout > n;
    int null = 0;
    int one = 1;
    for (int i = 1; i = 1; j--)
    {
    if (j % 2 == 0)
    {
    cout

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

      what about using a single bool datatype variable instead

  • @aiknowledge-n2s
    @aiknowledge-n2s Год назад +8

    This was actually a lot easier, cause fundamentals had been done and dusted in the previous video.
    Sign of a good course and it is progressing well.

  • @satakshi1459
    @satakshi1459 4 года назад +235

    Ma'am ur voice and the way of teaching is really lovely😄

    • @mearshadaman
      @mearshadaman 4 года назад +7

      YA, Her Voice is amazing

    • @varunguptag
      @varunguptag 4 года назад +6

      Phele m java kar raha tha use chod k c++ ka y course kar raha hu ab..

    • @varunguptag
      @varunguptag 4 года назад +3

      @@knowledgeknights2762 😀 are java se thak sa gya tha c++ karni bhi thi aur y course aa gaya

    • @swastikmishra8807
      @swastikmishra8807 4 года назад +3

      i think she is shradha, the girl from the proinsight , cracked microsoft internship

    • @sayanghosh6996
      @sayanghosh6996 4 года назад

      @@swastikmishra8807 see the terminal prompt, shes urvi goel

  • @tulsidas2908
    @tulsidas2908 4 года назад +39

    The way it is thought in apna college is just amazing like the steps to proceed told by the mentor is so easy and makes tough pattern questions so easy to code .
    Great work form apna college 🤩🤩🤩
    Loving it...

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

    The palindrome pattern can be using 3 loops instead of 4.
    just use a another variable initialize it to 2 for row and print it when k < 1
    for (int i = 0; i < n; i++)
    {
    int count1 = i + 1;
    int count2 = 2;
    for (int j = 0; j < n - i; j++)
    {
    printf(" ");
    }
    for (int k = 0; k < (2 * i) + 1; k++)
    {
    if (count1 >= 1)
    {
    printf(" %d ", count1);
    }
    else
    {
    printf(" %d ", count2);
    count2++;
    }
    count1--;
    }
    printf("
    ");
    }
    we can run the loops like she did and still do this, it will still work. I just prefer it this way

    • @channel-sanji
      @channel-sanji Год назад +2

      There is a simpler way. Like.
      for(int i=1;i

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

      @@channel-sanji yes,idk why ppl aren't doing this lol. i just did the same.

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

    From Starting, I was unable to do any pattern, now with your guidance and help I can build any pattern without see any solution.
    Thank you so much, TEAM #ApnaCollege.

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

    Awesome teaching skills..so polite and clear..hats off ma'am

  • @vinayparab2607
    @vinayparab2607 4 года назад +6

    ma'am you are so sweet. thank you for your teaching . it gives a next level of confidence. god bless you❤️❤️

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

    first question can also be done as - int main()
    {
    int n;
    cin>>n;
    for(int i=n;i>=1;i--){
    for(int j=1;j

  • @soumya_495
    @soumya_495 4 года назад +9

    I think for the first pattern question this is a bit short solution:
    int main(){
    int n;
    cin>>n;

    for(int i=n;i>=1;i--){
    for(int j=1;j

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

      yeah i was thinking about the same thing. we could just print j and get the same output :)

    • @soumya_495
      @soumya_495 4 года назад

      @@ritwikgarg yes 🤗

    • @ghosthunternotclickbaitaka1997
      @ghosthunternotclickbaitaka1997 4 года назад +1

      @Soumya Banerjee I have another solution BTW your solution is great its just I cannot think like these simple ways to execute.
      #include
      using namespace std;
      int main(){

      int n;
      cin>>n;
      for(int i=n;i>=1;i--){
      int count=0;
      for(int j=n-i+1;j

    • @tiGeR__11-r3s
      @tiGeR__11-r3s 4 года назад

      @@soumya_495 and for rhombus we can use setw

    • @tiGeR__11-r3s
      @tiGeR__11-r3s 4 года назад

      *this is the shortest code i can think of rhombus is*
      #include
      #include
      using namespace std;
      int main()
      {
      int n;
      cin>>n;
      int count=6;
      for(int i=1;i

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

    It is my first time practicing patterns, while I was doing half pyramid after 180 ' rotation which was given in first part of pattern I was able to do the star pattern out of it and i got to know that it was mentioned in second part of video it really blew my mind thank you for making such content it really helped me.

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

    Great!! solve the palindromic pattern without looking at the solution...Thanks aman bhiya.

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

    1st inverted pattern question I did it this way:
    #include
    using namespace std;
    int main(){
    int n;
    cin>>n;
    int count {1};
    for (int coloumn {n} ; coloumn>0 ; coloumn-- ){
    for(int row {1}; row

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

      Hlo bro
      Did u have the easy code for hollow diamonds using star (this que. Is in pdf) if u have send me in this comment i needed bro plz

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

    I did first one by taking row from n----1
    and column from 1------- row(i)
    And then print j (col)

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

    6:25
    I tried it using bool variable
    #include
    using namespace std;
    int main(){
    int n;
    cout

  • @saadzaki1658
    @saadzaki1658 3 года назад +4

    2:46.. i wrote a different program for that and it works too.. thanks for your nice teaching 😊

    • @sto-ic
      @sto-ic 2 года назад +1

      me too
      I didn't write j

  • @labanidas4318
    @labanidas4318 Год назад +10

    0:02 inverted pattern
    3:05 0-1 pattern
    6:46 rhombus pattern
    9:38 number pattern
    12:29 palindromic pattern
    18:06 star pattern
    23:17 zig zag pattern

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

    An alternative approach for inverted pattern:
    for(int j=n; j>=1; j--)
    {
    for(int i=1; i

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

      yaa done the same .... that's why scrolling comments to search related to it.

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

      Done the same!!

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

      Same here

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

      Wrong code !
      Bcoz you should not add the cout in side second loop ..it must applicable for 1 st loop 🤷🏿‍♂️

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

    I did the palindrome question this way:
    #include
    using namespace std;
    int main(){
    int n;
    coutn;
    for(int i = 1;i

  • @shrujankharwadey8769
    @shrujankharwadey8769 4 года назад +13

    Bhaiya please 🙏 also do add... Brain teaser after every 4-5 lectures and companies job interview 🙋questions

  • @SimpleProgrammer0
    @SimpleProgrammer0 4 года назад

    abb tak khi bhi star patterns wala concept trig nhi kiya abb iss video ne bhaut kuch sikha diya gajab bhai maza aa gya yaar

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

    For the zig-zag problem an alternate solution could be to say that for row two all multiples of 2 are *'s and for row 1 and 3 all multiples of 4 are *'s.Thankyou.

  • @QuransGems-zd1jd
    @QuransGems-zd1jd 3 месяца назад

    yar this really is awesome, I am not just learning about programming, I am getting a whole new view and prespective onto number and mathematics, on matrics, on rows and columns, believe me never though these could could be this interesting.

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

    we can also do 1st inverted pattern as
    for(int i=n;i>=1;i--){
    for(int j=1;j

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

    For 1st program pattern just use
    i=n;i>=1;i--
    j=1;j

  • @pranav_1056
    @pranav_1056 4 года назад +55

    Didi at 7:54
    It should be __1 to n - row no.__
    You have by mistake (in animation) writtens : n to 1 - row no.

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

    For 3:12 problem we can also use
    #include
    using namespace std;
    int main() {
    int r;
    coutr;
    for(int i=1; i

  • @rakshitawasthi1340
    @rakshitawasthi1340 4 года назад +5

    Thank u so much bhaiya for making such excellent videos for us🙏🙏. These questions are really helping me to improve my grasp on C++.

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

    0:03 inverted pattern:
    #include
    using namespace std;
    int main(){
    int n;
    coutn;
    for(int i=n;i>=1;i--){
    for(int j=1;j

  • @DeepakYadav-tm7ce
    @DeepakYadav-tm7ce 3 года назад +4

    for(int i=n;i>=1;i--){
    for(int j=1;j

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

    Pattern is printing is fun job. And I have solved every one of the following patterns by myself,, but what i learnt here is what i was doing wrong all along. b4 this i used to create a matrix in my mind and relate every cell index, to its row and column, then putting specific value(e.g. , *, numbers etc) to be printed, there according to the relation, and then print the matrix. the procedure may sound somewhat simple, but believe me in complex patterns like palindrome and pyramid, finding such relations is hard, and code tends to become buggy. here i learnt to do it using step by step procedure and deducing the pattern of each value inside a pattern, keep on printing each of those patterns and lastly create a complex one, and this ones is more efficient and simple in real.

  • @BossisRight
    @BossisRight 4 года назад +41

    i was so addicted to patterns that i completed them way before from the internet btw love your videos keep it up

    • @harshitasinha2590
      @harshitasinha2590 4 года назад +1

      Questions kaha se mile?

    • @devendrasingh4776
      @devendrasingh4776 4 года назад +6

      @@harshitasinha2590 wtf just google it. Idk there are still ppl with this much dumbness . Grow up grow up

    • @harshitasinha2590
      @harshitasinha2590 4 года назад +16

      @@devendrasingh4776 asking questions doesn't mean you are... Dumb
      But you appear even more dumb to me instead of answering my question and helping someone you are passing judgement on others if you didn't wanted to answer you shouldn't have

    • @harshitasinha2590
      @harshitasinha2590 4 года назад +9

      @@devendrasingh4776 grow up instead of picking fight... And passing judgement..... Look at your on problems if you can't help others

    • @harshitasinha2590
      @harshitasinha2590 4 года назад +5

      @@devendrasingh4776 my purpose of asking was to get a good set of questions and to know what my peers are studying

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

    another way to do the rhombus question by using only 2 loops:
    #include
    using namespace std;
    int main(int argc, char const *argv[])
    {
    int raw, col, count, in_count;
    cin >> raw;
    // int count = 1;
    for (int i = 1; i

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

    This is just awesome! I am getting to learn so much and getting better every time. Thank you Apna College for this. Grateful!😊

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

    For first pattern..a little simpler
    #include
    using namespace std;
    int main(){
    int n;
    coutn;
    for(int i=n; i>=0; i--){
    for(int j=1; j

  • @sourishdutta0999
    @sourishdutta0999 3 года назад +8

    a different approach of the palindromic pattern - 18:55
    later i realised after seeing the video that i did it in a shorter way -_-.
    solve by your own before seeing the answer of the question.
    #include
    using namespace std;
    int main() {
    int n, row, column;
    coutn;
    for(row=1;row

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

      Can you do it similar way in palindromic pattern for numbers?

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

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

  • @ravinderd.bhatoy7348
    @ravinderd.bhatoy7348 2 года назад +1

    we can also use following method:
    int n;
    cin>>n;
    for (int i = n; i>=1; i--)
    {
    for (int j = 1; j

  • @prakashkumar9506
    @prakashkumar9506 4 года назад +10

    Thank bhiya for speaking Hindi😍

  • @MohdSohail-js5qm
    @MohdSohail-js5qm 3 года назад +2

    I tried the wave pattern in a different way in python, Thanks for amazing video
    for i in range(1,4):
    for j in range(1,10):
    if(i==j or abs(j-i)%4==0 or (i==2 and j%2==0)):
    print("* ",end="")
    else:
    print(" ",end="")
    print("
    ")

  • @atharvashinde5176
    @atharvashinde5176 Год назад +7

    For the Palindromic pattern (12:30) I made this code
    #include
    using namespace std;
    int main()
    {
    int n;
    coutn;
    for (int i = 1; i

    • @ADVAYANAND-y1o
      @ADVAYANAND-y1o Год назад

      thanks bro

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

      But don’t it over lap bro like take fourth row , in first column u gave space ., now while printing numbers again u went upto first column in for loop to print number ….where as first column already contain a space

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

    In First pattern que i have done like this :
    #include
    using namespace std;
    int main()
    {
    int n,i,j;
    cin>>n;

    for(i=n;i>=1;i--)
    {
    for(j=0;j

  • @satyaprakashkarsharma6084
    @satyaprakashkarsharma6084 4 года назад +5

    Thank you very much bhaiya for constantly posting these videos.. it is now like a class..🙏🙏

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

    Another solution for the rhombus pattern:
    for(int i=0;i

  • @jatinjoshi9897
    @jatinjoshi9897 4 года назад +15

    // A different approach for Star pattern question (18:08) inspired from Palindrome pattern question (12:38)
    #include
    using namespace std;
    int main()
    {
    int n;
    cin >> n;
    for (int i = 1; i

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

    #Palindromic pattern in python...
    num = int(input("enter any number: "))
    for i in range(1, (num + 1)):
    k = i
    for j in range(num - i):
    print(" ", end=" ")
    for j in range(i):
    print(k, end=" ")
    k -= 1
    x = 2
    for j in range(i-1):
    print(x, end=" ")
    x += 1
    print()

  • @samarthnawale2466
    @samarthnawale2466 4 года назад +53

    Heart ❤️ pattern bhi sikhao.....use impress krduga coding se😎😂

    • @ayushpathak2003
      @ayushpathak2003 4 года назад +12

      😂 Creativity level - infinite

    • @technicalvedant2626
      @technicalvedant2626 4 года назад +18

      Doraemon bnana jyada impress hogi

    • @mearshadaman
      @mearshadaman 4 года назад +6

      O bhai.

    • @SurajKumar-qj3we
      @SurajKumar-qj3we 3 года назад +6

      thanks for the idea......now i just need to find a girl who can compile my heart wala pattern.....xD

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

      #include
      using namespace std;
      int main() {
      int n, row, column, update;
      char s; //symbol
      coutn;
      couts;
      cout

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

    another way of doing number pattern question by using 1 loop:
    #include
    using namespace std;
    int main(int argc, char const *argv[])
    {
    int raw, col, count, in_count;
    cin >> raw;
    // int count = 1;
    for (int i = 1; i

  • @tejasjoshi1907
    @tejasjoshi1907 4 года назад +4

    Just wanted to tell u that
    I was revising the problems from the practice problems files and in one problem which was diamond pattern there is a small mistake regarding printing spaces[it should be (n-i) not ((2*n-1)/2)] Hope you will correct that.
    BTW thank u so much for teaching us.........

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

    Till now I was copying the code but now for the first time I was able to code the 1-0 pattern on my own
    I am so happy about it
    I am looking forward to learning more

  • @Rehan-xb7hl
    @Rehan-xb7hl 4 года назад +2

    A better way to do the rhombus pattern is :
    int n;
    coutn;
    cout

    • @aniketsthings
      @aniketsthings 4 года назад +1

      bro this code is wrong its because you are printing 6*s everytime and just getting the number of rows from the user but in this question the number of *s should be equal to n i.e. if n=3 then number of rows should be 3 and the number of stars also should be 3 like this.
      if n=3 then
      "***"
      "***"
      "***"
      not this
      "******"
      "******"
      "******"

    • @Rehan-xb7hl
      @Rehan-xb7hl 4 года назад

      @@aniketsthings does'nt really matter bro.. Instead of printing 6*s use a loop there which print * upto n thats it

    • @aniketsthings
      @aniketsthings 4 года назад

      @@Rehan-xb7hl yeah bro

  • @himanshubhatt6240
    @himanshubhatt6240 4 года назад +3

    Aman bhaiya this has helped me a lot....thank you so so much for what all you are doing to provide free education ♥️♥️♥️♥️♥️♥️♥️♥️♥️🥳🥳

  • @Divya-P8k
    @Divya-P8k 3 года назад

    An alternative answer to the palindrome question -
    #include
    using namespace std;
    int main()
    {
    int n;
    cin>>n;
    for(int i=1;i

  • @vivekanandsahoo5181
    @vivekanandsahoo5181 4 года назад +3

    great simplified teachings by mam

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

    1st Question:-
    #include
    using namespace std;
    int main()
    {
    int n;
    cin>>n;
    int count=1;
    for(int i=n;i>=1;i--)
    {
    for(int j=1;j

  • @piyushranjanojha8498
    @piyushranjanojha8498 4 года назад +3

    Let's make his Chanel the most subscribed Chanel of India .
    He is doing such a great work for us can't we do this for him
    Please guy's

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

    Salut Aman Bhai. God Bless to Aman & lady educator as well

  • @amanrajput2692
    @amanrajput2692 4 года назад +5

    my logic for inverted pattern
    #include
    using namespace std;
    int main()
    {
    int n;
    cin>>n;
    int end;
    end=n;
    for(int i=1;i

    • @govindptl
      @govindptl 4 года назад +1

      Same here👍👍

    • @rovinsingh4116
      @rovinsingh4116 4 года назад +1

      heres mine ,simplest
      #include
      using namespace std;
      int main(){
      int n;
      coutn;
      for(int i=n;i>=1;i--){
      for(int j=1;j

  • @prashantdeveloper7354
    @prashantdeveloper7354 4 года назад

    2:49 . Alternate
    for(int i=n;i>=1;i--){
    for(int j =1;j

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

    Wow ... amazing efforts thankyou aman bhaiya and team🔥🔥🔥👌

  • @yogeshkumarpandey2343
    @yogeshkumarpandey2343 4 года назад +1

    Bas yahi video ka inezar tha. mazza aa gya

  • @AlokSingh-jw8fr
    @AlokSingh-jw8fr 3 года назад +3

    Didi can you do a video explaining pascal triangle question.
    I didn't understand how to code it

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

    0:09 - inverted pattern, 3:09 - 0-1 pattern, 6:46 - rhombus pattern

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

    First problem can be alternatively solved as :
    #include
    using namespace std;
    int main()
    {
    int rows;
    cout

  • @Aarnav6-tz2ui
    @Aarnav6-tz2ui 6 месяцев назад

    mam i printed 1st invereted pattern in little other easy way :-
    # include
    using namespace std;
    int main ()
    {
    int i,j,n;
    cout > n;
    cout =1 ; i--)
    {
    for (j=1 ; j

  • @unmindedcoder8638
    @unmindedcoder8638 4 года назад +4

    I liked the whole video and at the last, I liked the beat the most.

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

    alternative approach for number pattern :
    #include
    using namespace std;
    int main()
    {
    int n{0};
    coutn;

    for(int j=n; j>=1; j--)
    {
    int k=1;
    for(int i=1; i=j)
    {cout

  • @ashutoshdubey2308
    @ashutoshdubey2308 3 года назад +4

    i think many people are confused about the double space taken in the palindrome

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

    1st Exercise agar samaj nahi aya tho ye bhi kar sakthe ho:
    int main(){
    int n;
    cin>>n;
    for(int i=n; i>=1 ; i--){
    for(int j =1; j

  • @lover_physics
    @lover_physics 4 года назад +5

    Happy navratra bhaiya ...💙
    Allah aapko hamesha hr kaam m tarakki de ☺️

    • @TheCraftyBoy
      @TheCraftyBoy 4 года назад

      💝 Please Ek Waar Meri Bhi Drawings Dekh Lo...😊🙏 Badi Acchi Drawings Banata Hu 😊💕....Sirf Apke Liye..😟

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

    9:24 I did this question in a different way:
    #include
    using namespace std;
    int main(){
    int row,i,j;
    coutrow;

    for(i=row;i>=1;i--){
    for(j=1;j

  • @sameeransari6798
    @sameeransari6798 4 года назад +141

    Chintu n faltu m paise diye

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

    Alternate Solution for Rhombus Pattern(using if-else):
    int n;
    coutn;
    for(int i=1;i

  • @KrishanKumar-bt9gz
    @KrishanKumar-bt9gz 4 года назад +9

    Hello Team,
    It would be really great if you put all questions (c++ placement)in one pdf along with solutions (topic wise and difficulty wise).so that students who have already covered dsa part ,and are appearing for interview in a month time..can easily get prepared with it.! Orelse it's tough to follow course when it will bw completed.
    It will be great for those final year student who have basic programming skills and also completed DSA,and wants to improve their problem solving skills. And want to revise through! .
    It is a request to you sir.!
    It will help a lot!! Keep it up for the good content u are providing.. i wish i had it in my 3rd year .till now i would have completed successfully.!
    Thanks,
    Regards!

    • @deepak_joshi_the_conqurer_
      @deepak_joshi_the_conqurer_ 4 года назад

      Sahi baat hai!!

    • @mananrajenmehta1107
      @mananrajenmehta1107 4 года назад

      It would increase their efforts by 10 times. It would be better if one of the students or a group of students would take the initiative

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

    at 8:04, If you want the rhombus to look like in the picture, you can use the following code:
    I am excluding the variables, only the loop. we take cin >> x;
    for ( int i = 1; i

  • @gauravbisht8487
    @gauravbisht8487 4 года назад +12

    i have done all questions without seeing any answer🥰

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

    alternative method for palindromic pattern:-
    int n;
    cin>>n;
    for (int i = 1; i

  • @motivationalhub8915
    @motivationalhub8915 4 года назад +11

    Bhaiya sara Chapter Please Jaldi dal dijiya ..
    Because If We Will Get Notes and lecture after Time Will Pass , Then It Will be Of No Use for Batch of 20-21 .
    Please 🙏🙏🙏🙏🙏🙏🙏

    • @motivationalhub8915
      @motivationalhub8915 4 года назад

      🙏🏻🙏🏻

    • @TheCraftyBoy
      @TheCraftyBoy 4 года назад +1

      💝 Please Ek Waar Meri Bhi Drawings Dekh Lo...😊🙏 Badi Acchi Drawings Banata Hu 😊💕....Sirf Apke Liye..😟

    • @Shakti9621
      @Shakti9621 4 года назад

      @@TheCraftyBoy yes bro, sach me kafi achi drawing h apki, keep going

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

    Palindome alternate approach:
    int main()
    {
    int n = 5;
    string s = "1";
    for (int i = 1; i

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

    my logic for palindrome:
    #include
    using namespace std;
    int main() {
    int i,j,n,k;
    coutn;
    cout

  • @YashJain-ex2ex
    @YashJain-ex2ex 3 года назад

    The first pattern example in this video
    the output is coming with this code also
    "for(int i=n; i>=1; i--){
    for(int j=1; j

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

    Palindrome was bit confusing but I think you could have explained it in more detail. But anyways I will learn it somehow ...thanks for the videos..

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

      Same....i didnt even undwrstand....if you find any way of understand it pls do share....

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

      @@mohammedfardeen6325 Guys for those who did not get the Palindrome, maybe the alternative code I got, help you. So check this out!!
      int main()
      {
      int n;
      coutn;
      int j;
      for(int i=1;i

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

      Can u explain dusre variable k ko lene ki need kyu pdi jab j se hi solve ho jaega ?? I m confused now🥲

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

    For star pattern just do pallendrome pattern and instead of cout no. Just cout * we will get star pattern

  • @vikalkumar1267
    @vikalkumar1267 4 года назад +4

    Last moment tune is😍.after watching video.

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

    Very first question of advanced problems can be easily solved by
    For(int i=n;i>=1;i--){
    For(int j=1;j

  • @YOGESHKUMAR-vz7tu
    @YOGESHKUMAR-vz7tu 4 года назад +32

    Rooz ki trha aaj bhi like ker ne aaya hu....

  • @m.afnan2018
    @m.afnan2018 4 года назад +1

    I am ISC board student, it helps even in my computer syllabus(JAVA) because the logic is same,,,
    Thank you to the Team Apni kaksha,,,,,

    • @suyashrahatekar4964
      @suyashrahatekar4964 4 года назад

      is Java similar to C++?

    • @m.afnan2018
      @m.afnan2018 4 года назад

      @@suyashrahatekar4964 almost similar,,,,It like Sanskrit and Hindi,,,,,,

  • @mradul.bhardwaj
    @mradul.bhardwaj 3 года назад +4

    in ques 23:20 if no. of row and no. of stars are both variable(i.e. both are taken input from user) then ques would be insanely difficult. If anyone can solve this problem with condition mentioned above please provide its sol. in reply.

  • @saumasischandra8114
    @saumasischandra8114 4 года назад +1

    palindrome can be done by this way also using 1 lesser loop
    void palinpattern(int n)
    {
    for(int i=1, temp= i; i

  • @sarthaknitnaware
    @sarthaknitnaware 4 года назад +4

    Great course Aman bhaiyya and his entire team👏👏 btw her voice is so cute...😉😉

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

    Didi ka voice is supersonic! So fast!

  • @bhavaneetsunkara777
    @bhavaneetsunkara777 4 года назад +6

    Freelancing sikha do 🙏

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

    microsoft wala apu best.love from bangladesh!

  • @MuhammadSaheed-jb9mr
    @MuhammadSaheed-jb9mr 4 года назад +3

    Sir when will you upload class 11 and JEE videos. Im in great need of it. Please try upload as soon as possible

  • @tarunakantakumbhar5725
    @tarunakantakumbhar5725 4 года назад

    I'm solve #paliadrome pattern with an another method
    For(int i= 1;i

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

    17:34
    you used very confusing code to write this
    we can simply add a for loop in your previous mentioned pattern(the triangle one)
    here is the code
    #include
    using namespace std;
    int main()
    {
    int n;
    coutn;
    for(int i=1; i

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

    15:27 if any one confused at this point
    #include
    using namespace std;
    int main()
    {
    int i,j,n=5,count=0;
    for(i=1;i