Solve any square or hollow pattern in Java

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

Комментарии • 146

  • @cagla3360
    @cagla3360 2 года назад +11

    never understood patterns until your videos. thank you so much! you saved my life

  • @AnuragKumarPrajapatii
    @AnuragKumarPrajapatii 5 месяцев назад +1

    actually you are underrated but by god every lecture of bigger channels fail in front of this masterpiece. Thanks for making it easy

  • @moviescenter6214
    @moviescenter6214 18 часов назад

    it is my first comment on RUclips after seeing this video I got surprised I suggest u to see this video and pattern based video also there that also u see guys it too good ..... thank u mam

  • @PuspenduBiswas-jn2mq
    @PuspenduBiswas-jn2mq 2 месяца назад +2

    @SimplyCoding In this video at 7:41 min you have mentioned that to find middle row and column we use the formula n/2+1 but the formula should be (n+1)/2 for odd number and n/2 for even number.

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

    Thank you.. I was very confused but i m now able to solve problems on my own😄thank you so much.. I was very confused in classes.. But this video help me understand in one go

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

    My first comment ever on youtube.
    The way you taught is awesome !!!!! very easy to understand

  • @harshitkushwah6920
    @harshitkushwah6920 2 года назад +11

    I have never grasp the concepts in such an easy manner.Thanks ma'am 😊😊☺️☺️

  • @Amroonihashem
    @Amroonihashem Месяц назад

    Thank you very much for your videos, to be fair your content is one of if not the best educational Java content.

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

    Maam many videos are there fr pattern in youtube bt only urs is useful nd understandable Ma'am..thank u so much maam ❤️❤️

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

    For the one who didn't get why we not used i+j == n+1 in hollow triangle and diamond, note that The reasons behind this is that concept i+j will not work here, just forgot that concept, in easy way I will tell you that, in second triangle see from where j is starting in for loop, its j = 1, so j is going to start always from 1 as we move downwards, means j = 1 is the first element for second triangle at each row, so we can say that j = 1 is making the border for second triangle, so that is why we are checking the first element of 2nd triangle every time in if statement that is j == 1 so that whenever it will come, we will create a star, so likewise the border is created for second triangle. In third triangle look what is making border, that's the last element that is when j == i, so that is why we have taken j == i in if statement of third for loop.

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

      In hollow decreasing triangle why should we took j==n instead of taking j==1 please give me reply and clarify my doubt

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

    Mam...firstly i apprciate your time and effect you have dedicated to make video to make our life so easy to understand the concept......man while you explaning hollow increasing triangle there is a distrotion in video no view of anything ........am basiclly from different backgroung of EEE but your explaination about the concept made me so easy i wished like you proffesor was there in colleges all student could have scored out of out and loved there subjects....thank you

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

    i used almost 4 hours trying to solve this in a coding challenge, i didn't even watch this video finish before i understand

  • @Hiarling
    @Hiarling 2 года назад +9

    Mam please can you also make a DSA playlist🙏🙏...ur teaching way is supebbbb... and simplest...💓🔥

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

      Thanks, yes we have already done a few DSA videos and we will create a playlist for same. Will also finish the remaining videos as well.

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

      @@SimplyCoding thankyou so much 🙏

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

      @@SimplyCoding where mam ?? Please give us link . I couldn't find

  • @Shivakumar-ik3tt
    @Shivakumar-ik3tt Год назад +2

    The amazing and elegant style of teaching.

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

    mam your hollow triangle pattern is not working , please look at it once na.. Nd so thankful for this video , very helpful and the way you explain is awesome. i am almost 15 times watched your video nd every time i feel blessful.

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

    Mam u r really a good teacher i never seen ever

  • @shandeshchaudhary-ps1tz
    @shandeshchaudhary-ps1tz 4 месяца назад

    I have fallen in love with your explanation.😊💌💌

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

    Thank you so much mam very helpful video i was stucked in patterns now i can solve patterns related to square😊

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

    Best vdo i have ever seen on this concept
    Great explanation

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

    Why there is j

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

    best pattern explanation

  • @user-pc9gi5ej9x
    @user-pc9gi5ej9x 10 месяцев назад

    Detail explanation with understandable pictures

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

    Just one question if you can answer on the last question when you are printing Diagonal why are you doing j == n? it should be i + j == n + 1 right ??

  • @user-gu4qm7hu8i
    @user-gu4qm7hu8i Год назад +1

    Thank you....very well explanation

  • @saikishore1593
    @saikishore1593 Месяц назад

    Thank you for the video mam😇

  • @MukeshVerma-fv3ed
    @MukeshVerma-fv3ed Год назад +13

    In hollow hill pattern, in second triangle isn't that a diagonal and we can use the formula (i+j==n+1), then why is the formula j==1?

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

      i also agree with u

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

      The reasons behind this is that concept i+j will not work here, just forgot that concept, in easy way I will tell you that, in second triangle see from where j is starting in for loop, its j = 1, so j is going to start always from 1 as we move downwards, means j = 1 is the first element for second triangle at each row, so we can say that j = 1 is making the border for second triangle, so that is why we are checking the first element of 2nd triangle every time in if statement that is j == 1 so that whenever it will come, we will create a star, so likewise the border is created for second triangle. In third triangle look what is making border, that's the last element that is when j == i, so that is why we have taken j == i in if statement of third for loop.

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

    NICE SUPER EXCELLENT MOTIVATED

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

    mam please include the other pattern videos as a playlist and paste the link in the description. it will help us to saw other problems

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

      Thanks a lot for your suggestion, will do the same

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

    Thank you very much, ma'am. If it weren't because of you, I wouldn't pass this semester. Thank you very much! You just saved me...

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

    Nice explane mam

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

    excellent explain and every thing standable

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

    very excellent explanation madam.Thank you..

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

    Thank u mam for ur lovable teaching

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

    super Bro

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

    great teaching method thank you soo much i was confused soo much

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

    Simply great🙏

  • @jyothish.m.u
    @jyothish.m.u 8 месяцев назад

    Very simple 👏👏👏👍👍👍

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

    Thank you. Appreciate explaining the concepts so clearly. 🤩🤩🤩

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

    Nice explanation and it is very easily understood.... 😻❤️❤️😘😘
    Thank u so much ma'am...🥰🥰
    Pls u can do Data Structures Videos...😊😊☺️

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

    thanks mam as you clear my concepts on this topic.

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

    At 14:18 why it can't be j==1 since you showed i==1,j==1,j==i

  • @user-sn7gi7tn8h
    @user-sn7gi7tn8h Месяц назад

    Nice explanation Thanks !!🙏

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

    This video helped me a lot

  • @nemoaditi5375
    @nemoaditi5375 2 дня назад

    Maam you have interchange the formulas for diagonals

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

    Wonderful explain thanks for given your logic 🖤🖤

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

    Ma'am you explained very well 🙏

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

    Thank you so much! Pretty mam

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

    This video is amazing.

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

    Tq for making this video 😘

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

    Hollow decreasing triangle is it crt or we can write it a if(i=1||j=1||i+j/n+1) I think it is crt code plz reply

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

      No, the if condition should be "if (i==1 || j==1 || i+j==(n+1))"

    • @shreelekham.k.9141
      @shreelekham.k.9141 6 месяцев назад +1

      ​@@BoobieMistakeyes in video it is incorrect

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

    ❤❤❤❤❤🎉very helpful

  • @TOPSTAR-cy4je
    @TOPSTAR-cy4je 2 года назад

    nice teaching mam

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

    Much helpful vedio

  • @robloxplayeronly8711
    @robloxplayeronly8711 8 месяцев назад

    if you are my teacher, i would be an expert.

  • @susinaren2999
    @susinaren2999 2 месяца назад +1

    ❤❤❤

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

    Thanks mam . Very very thank you ❤️

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

    Thank you so much Mam .

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

    Hill pattern code is not giving the desired pattern and the diamond pattern also plaease correct it

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

      Can you send your code at info@simplycoding.in so that we can help correct it?

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

    Hi, thank you for such an exceptional video. I have one doubt though. While taking the if-condition for 2nd triangle of Hollow Hill Pattern (at 15:14), we are using the condition "if(i == n || j == 1)." Why are we using j == 1 when I think it should have been j == i. I know you r correct and I am wrong, but I am unable to get it, can u please explain.

    • @balapaudel
      @balapaudel 11 месяцев назад +1

      j==1 helps us print the first star in each row. remember we print one line at a time. j prints stars in each line always starting from 1. And we need the 1st star in each line so j==1.
      j==i doesn't work because i is responsible for rows. again remember we print one line at a time. for first row j will print a star because i==1 at first row but when we need to print second row the value of i becomes 2 but we need 1st star of each row. So this won't work.

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

      ​@@balapaudeltq for the explanation for the 2nd triangle but why we take j==i in 3rd triangle instead of j==1?

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

    Mam we need video on DSA IN JAVA so plz make video's on DSA bcz
    DSA is on hype so, if u will make vdo on this then u will get more like and subscribe.....
    Plz make line by line playlist on DSA 🙏🙏
    I promised I will give u more subscribers☺️
    Plz Plz...

  • @aryaneetuhooda6609
    @aryaneetuhooda6609 27 дней назад +1

    10:05 Couldn't understand this one... 😢

  • @DanDan-st5qe
    @DanDan-st5qe 2 года назад

    Very helpful

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

    Thank you very much.

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

    Can you do hollow square pattern without using operator

  • @RPLmodelamentos-sz3ox
    @RPLmodelamentos-sz3ox 6 месяцев назад

    Thank You!!

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

    superb!

  • @TranNguyen-xp4rb
    @TranNguyen-xp4rb Год назад

    Thank you so much

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

    amazing

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

    thank you very much maan 😍😍😍

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

    mam hollow decreasing triangle is not working .
    here the correct code:
    #include
    int main()
    {
    int limit, i, j;
    printf("Enter a limit: ");
    scanf("%d", &limit);
    for (i = 1; i

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

    wish you've done it in IDE

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

    Super

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

    For a triangle star int i = what to give

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

    In increasing triangle (hollow) can we write j=1,i=n,j=n???? Maam pls tell@SimpleCoding

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

      I am not sure if I understand your question. Can you edit the code and send at info@simplycoding.in

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

    I didn't understand if condition j==n in hollow decreasing triangle.
    Could you please explain in short

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

      A decreasing triangle has j loop from i to n -> for (int j = i; j

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

      @@SimplyCoding understood mam thank you🙏

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

    this was amazing

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

    Hi, could u please share the link for hollow butterfly pattern program present on simply coding website🙂

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

    hitting the subscribe button was too early for me 🥰

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

    Madam using string to this method answer showing wrong output.for eg input gives Harish

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

      Can you send the exact question and your code to info@simplycoding.in?

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

    Tq so much maam ❤️

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

    Thank you

  • @Seraph-21_
    @Seraph-21_ 11 месяцев назад

    do it again with python pls

  • @MSPHOTOGRAPHY-ep8by
    @MSPHOTOGRAPHY-ep8by 2 года назад

    In Hollow diamond pattern j

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

    hollow decreasing triangle was incorrect , it should be
    package Loops_in_Java;
    public class right_downward_triangle_hollow {
    public static void main(String[] args) {
    int n = 5;
    for (int i = 1; i

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

    Could you paste the code of hollow left Pascal

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

    Anyone tell me please can we make kite following these patterns if yes then how ?

  • @mouni-o-
    @mouni-o- 2 года назад

    Mam how to print for diffent Symonds in row and column like -, / , | for this symbols in hollow

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

      Can you give an example of what kind of pattern you want?

    • @mouni-o-
      @mouni-o- 2 года назад

      @@SimplyCoding to build pattern
      / |
      / |
      / |
      /____|

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

    Mam the videos are awesome but we are using more no of for loops

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

      That's correct, number of loops are more but its easier to remember and implement for a beginner. Once you are a bit experienced, you will know how to merge the loops.

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

      @@SimplyCoding maam but u should teach us from beginner to advanced way , what if someone will not get the way to merge the loops then.

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

      @@kunalsoni3906 We have basic videos on just understanding for loop and then programming for exams/entrance. Truthfully, no one has come back to learn how to merge the loops as none of the tests count how many for loop you have used. They check if the output is correct or not.

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

      @@SimplyCoding but ma'am it's creating time complexity. And let me tell u something I started doing patterns from your video but than at some patterns through your method I am not able to do that exact pattern. And please on request in the last part of video you show us some patterns to solve, kinda put solutions of that pattern. As I am struggling in solving them.

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

      @@kunalsoni3906 Kunal all the code is available at the link given. In case you are having any difficulty in writing any of the patterns, pls send us you code at info@simplycoding.in and we would be happy to help.

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

    thanks

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

    thankss

  • @user-oz5vd6jl2z
    @user-oz5vd6jl2z Год назад

    🤔🤔🤔🤔🤔🤔 how it so easy

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

    Ma'am the butterfly patttern

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

    In hollow decreasing triangle j==i is wrong

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

    i dont understand the n/2+1 . can you please explain it

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

      Take a example to understand it. Lets say you have pattern of 5 stars so middle row/col is 5/2 + 1 which is 3. If it is pattern of 7 stars, then the middle row is 7/2 + 1 which is 4 and so on.

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

    Some are not giving the expected output

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

    Plz Make this video On Python

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

    Can you please explain j==n in hollow decreasing triangle?

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

      wrong hai

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

    In cross pattern 10:34
    If n is even then this logic wont work

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

    import java.util.Scanner;
    public class Main{
    public static void main(String args[]){
    Scanner s=new Scanner(System.in);
    System.out.println("enter n:");
    int n=s.nextInt();
    for(int i=1;i

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

    🔥💕👌👍