10 : Pattern Printing | Hackerrank C Solutions

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ต.ค. 2024

ความคิดเห็น • 120

  • @Ashok-mh2df
    @Ashok-mh2df 4 ปีที่แล้ว +5

    everything is perfect and clear, except the last part, you should explain that
    in line 42 : printf("
    "); should come after the brackets in line 43.
    then the output will be perfect.
    Thanks, man.

    • @AnshulPatle31
      @AnshulPatle31 3 ปีที่แล้ว

      But man he didn't give the brackets{} to for-function hence it doesn't need to be correct.

    • @Nationviews
      @Nationviews 3 ปีที่แล้ว

      Kaha out put parfect please input 11 then the code will give you wrong result

    • @shubhamkokala1992
      @shubhamkokala1992 3 ปีที่แล้ว

      @@Nationviews code is correct bro maybe u forgot to add white spaces(space bar) or
      somewhere so that ur test cases are getting wrong

  • @biswajitrout4710
    @biswajitrout4710 3 ปีที่แล้ว +26

    How did you built logic and how you approached to this kind of problem .
    I find my self difficult while doing this 🙏🙏🙏

  • @karthikbs8749
    @karthikbs8749 3 ปีที่แล้ว +3

    Super bro I too thought of this logic but I coulnt implement it. I looked for the web for codes but they were quite confusing. Yours is easy. Thanks

  • @karthik-pk7zh
    @karthik-pk7zh ปีที่แล้ว +6

    I tried to solve it for 3-4hrs and i gave up and checked for solution in TH-cam after watching this video i realised i have 0 common sense 😢

    • @dev.19.community
      @dev.19.community  ปีที่แล้ว +2

      No Bro, you practise regularly , you logic will improve

  • @varunjain4496
    @varunjain4496 4 ปีที่แล้ว +3

    Bro you taught really well . Your cide was simple to understand though it has greater time complexity.

  • @muralibehera4445
    @muralibehera4445 3 ปีที่แล้ว +5

    Thank you so much, brother. You made the code in a simple and easily understandable way

  • @aaryansj8016
    @aaryansj8016 3 ปีที่แล้ว +2

    Thxs...bro....We will help to share ur channel...!!!
    Thxs for explaining ❤️❤️❤️😘

  • @arunaagt8229
    @arunaagt8229 4 ปีที่แล้ว +4

    No difficulties after you taught!! Thanks...

  • @rajands65
    @rajands65 ปีที่แล้ว +2

    thank you so much bro,your code is very easier to understand :)

  • @CODEINFINITY
    @CODEINFINITY 3 ปีที่แล้ว

    you are most help for solve hacker rank problems thank you so much,,,.............

  • @vishallazrus7353
    @vishallazrus7353 ปีที่แล้ว +5

    The complete and correct solution 👍👍👍👍
    #include
    #include
    #include
    #include
    int main() {
    int n;
    scanf("%d", &n);
    int size = 2 * n - 1;
    int start = 0;
    int end = size - 1;
    int a[size][size];
    while (n != 0) {
    for (int i = start; i

  • @nikhilmahajan4129
    @nikhilmahajan4129 4 ปีที่แล้ว +3

    Thank you so much for this video!! very well explained...

  • @AnshulPatle31
    @AnshulPatle31 3 ปีที่แล้ว +2

    I am green handed in this field, hence I feel more harder to understand the problem & after watching the same video for more then 6 times then I understood it problerly. Your communication is slitly week you can improve it. Otherwise everything was nice we want such more advanced type of problems. Please caary on sir.

    • @sangeetaverma8295
      @sangeetaverma8295 3 ปีที่แล้ว

      hey how do we print it? codefor printing the values can you please explain me

  • @alien19087
    @alien19087 3 ปีที่แล้ว +1

    Thanks a lot bro. I was just searching someone to understand how to implement it. Codes on Google were very confusing.

  • @ezkakashi7598
    @ezkakashi7598 3 ปีที่แล้ว +7

    Abey Answer print toh karde last main......tune video pause karke problem solve kar diya lekin hum log aese nhi kar sakte :(

  • @thefourhourtalk
    @thefourhourtalk 3 หลายเดือนก่อน

    Easiest explanation ever it took me 2 hours to decode this after looking at the explanation I am now getting sad ;😂 mere dimag me kyu nahi aaya ye

  • @harshitbhatt6822
    @harshitbhatt6822 4 ปีที่แล้ว +7

    Your code is still not working

    • @dev.19.community
      @dev.19.community  4 ปีที่แล้ว +4

      Refer this : github.com/MahadevGopanpalli/Hackerrank/blob/master/Pattern_Printing.c

  • @yasminsaleem6399
    @yasminsaleem6399 3 ปีที่แล้ว +1

    Very nice explanation. Thank you so much.

  • @NageshKumar-qm5yy
    @NageshKumar-qm5yy 3 ปีที่แล้ว +3

    Bro isme printf kha hai 🙄

  • @samyukthasrinivasan5292
    @samyukthasrinivasan5292 2 ปีที่แล้ว +1

    Very clear explanation sir...Thank you soo much

  • @r0han-01py
    @r0han-01py 10 หลายเดือนก่อน +1

    Nicely explained, try hindi for better explanation

  • @harshda3516
    @harshda3516 11 หลายเดือนก่อน +1

    you explained more excellently than any others. I understood that code because of you. thanks

  • @eagleeyewolfpaw-birsheoran2196
    @eagleeyewolfpaw-birsheoran2196 3 ปีที่แล้ว +3

    Thanku you deserve that ad😁

  • @dabloogupta5920
    @dabloogupta5920 3 ปีที่แล้ว +2

    Voice is very slow

  • @joelrizkyw
    @joelrizkyw 4 ปีที่แล้ว +2

    how do you know that the size formula is: size = n * 2 - 1 ?

    • @dev.19.community
      @dev.19.community  4 ปีที่แล้ว

      That is the thing of logic like, anyone can define their own formula for exp[ected outp[ut

    • @84y87
      @84y87 3 ปีที่แล้ว

      Through observation.

  • @suchithkumargm
    @suchithkumargm 3 ปีที่แล้ว +2

    Nice explanation bro

  • @TheGrowthDiarie
    @TheGrowthDiarie 4 ปีที่แล้ว +2

    why are you using "or" operator instead of and operator as we need to satisfy all conditions right !!

    • @dev.19.community
      @dev.19.community  4 ปีที่แล้ว

      but do u get the logic or not ? means samaj me aya kya code?

    • @TheGrowthDiarie
      @TheGrowthDiarie 4 ปีที่แล้ว

      @@dev.19.community yes . can we use "and" operator instead of "or" operator?

    • @dev.19.community
      @dev.19.community  4 ปีที่แล้ว

      no then the code will not work then...

    • @45_ritiksharma32
      @45_ritiksharma32 4 ปีที่แล้ว

      Indu chundi or operator should be used

    • @lohithabhusarapu9289
      @lohithabhusarapu9289 4 ปีที่แล้ว

      If u use and it means both I and j should be zero ...so basically u will get n=4 only at the first position that is 00

  • @ibrahimhafez7885
    @ibrahimhafez7885 2 ปีที่แล้ว +1

    I really appreciate your work. Thanks alot!

  • @geheron1946
    @geheron1946 3 ปีที่แล้ว +2

    Bro u really helped me understand this question 🙏 thnks a lot man ❤️

  • @SipChai
    @SipChai 2 ปีที่แล้ว +1

    Really helpful, thank you

  • @tadaaa9220
    @tadaaa9220 4 หลายเดือนก่อน

    Very nicely explained. 🎉🎉🎉

  • @gyanvipandey2906
    @gyanvipandey2906 4 ปีที่แล้ว +2

    I tried solving the same code in hackerrank but its giving different output

  • @avinashkumar1206
    @avinashkumar1206 2 ปีที่แล้ว +1

    I am initiating array with 1 rather than 0 but i am not getting the right output.

    • @syedahmad4466
      @syedahmad4466 ปีที่แล้ว

      Then initialize the end= len not len-1

    • @KeepCoding69
      @KeepCoding69 ปีที่แล้ว

      Initialise end with either end

  • @moinmusa
    @moinmusa 4 ปีที่แล้ว +2

    bahot badia explanation

  • @iprakash31
    @iprakash31 4 ปีที่แล้ว +2

    great explanation........really!!!!!!!!

  • @ravianandrao7761
    @ravianandrao7761 3 ปีที่แล้ว

    kya explanation tha !! classic way main samjhaya .. bhai wo variadic fucntions wala question asach samjav jara

  • @arunshukla5767
    @arunshukla5767 2 ปีที่แล้ว +1

    i got it very easily
    Great :)

  • @sakethsaketh750
    @sakethsaketh750 2 ปีที่แล้ว

    Thank you bro, u used pen and paper at its best

  • @lordmoriartea7799
    @lordmoriartea7799 3 ปีที่แล้ว

    for(int i = 0 ; i < size ; i ++)
    {
    for(int j = 0 ; j < size ; j ++)
    printf("%d ",a[i][j]);
    printf("
    ");
    }
    return 0;
    }
    in this nested loop u didn't use curly braces for "for loop" why?

    • @lalisa1638
      @lalisa1638 2 ปีที่แล้ว

      If only one is given then no need of curly braces
      If braces not given the compiler understands that only one line with come under that loop

  • @sagnikdas1780
    @sagnikdas1780 3 ปีที่แล้ว +2

    Thank you so much

  • @ramadevimadaka7832
    @ramadevimadaka7832 4 ปีที่แล้ว +1

    Tq so much for ur explanation u helped me alot sir 🙇🙇

  • @tirthankarchakraborty1247
    @tirthankarchakraborty1247 3 ปีที่แล้ว

    you should copy paste the entire code and give it in the description box or in your comment

  • @mostafabahnasy8072
    @mostafabahnasy8072 4 ปีที่แล้ว

    size of array should be const no variable how is it work?

  • @rohanray8922
    @rohanray8922 3 ปีที่แล้ว +1

    Really nice solution.Thanks!

  • @VijaySharma-hz5wr
    @VijaySharma-hz5wr 2 ปีที่แล้ว

    Thank you brother ,
    for your solution ...
    👍👍

  • @NeighbourHeap
    @NeighbourHeap 2 ปีที่แล้ว

    It's not working.... Same code.. I run... But... Not working......

  • @jaydeepyadav5641
    @jaydeepyadav5641 3 ปีที่แล้ว +2

    very well explained 💯

  • @raht9578
    @raht9578 3 ปีที่แล้ว +1

    thank you so much
    the logic helped me a lot

  • @AjayMaurya-md4kh
    @AjayMaurya-md4kh ปีที่แล้ว

    Great approach..

  • @Colorbowl80
    @Colorbowl80 4 ปีที่แล้ว

    I am finding to understand the code...step by step process..help us to be good in problem solving skills

    • @dev.19.community
      @dev.19.community  4 ปีที่แล้ว

      Ohk Bro..
      & Feel free to comment if any coding problem
      we will always try our best

  • @ayeshasanadi9652
    @ayeshasanadi9652 3 ปีที่แล้ว +2

    Thank you so much sir✌😍

  • @Aditya-ur5nx
    @Aditya-ur5nx 3 ปีที่แล้ว +2

    to print this solution:
    for (int i =0; i

  • @sanilpawar9304
    @sanilpawar9304 3 ปีที่แล้ว +2

    Need better explanation.

  • @trishaseal7782
    @trishaseal7782 ปีที่แล้ว +1

    Thanks a lot!

  • @samratkarak5625
    @samratkarak5625 ปีที่แล้ว +1

    bro can you send this code as a file. please need this

  • @kami_OwO
    @kami_OwO 3 ปีที่แล้ว

    hey do without array by just using for loop

  • @PrabhjeetSingh-wb1mc
    @PrabhjeetSingh-wb1mc 3 ปีที่แล้ว

    code is working bro and good explanation

  • @abdulrazeemm6879
    @abdulrazeemm6879 3 ปีที่แล้ว

    Thanks bro, it is really helpful

  • @adityaverma3919
    @adityaverma3919 4 ปีที่แล้ว

    You r too good!, clearly explained!!

  • @ronaka6043
    @ronaka6043 4 ปีที่แล้ว

    what should i do to give space between 222

    • @prathamsinghal6122
      @prathamsinghal6122 4 ปีที่แล้ว +1

      use printf("%d ",a[i][j]) after d give one space

  • @Nationviews
    @Nationviews 3 ปีที่แล้ว

    Sir ye 9 tak he sahi hai program 9 ke baad Galt hai

  • @parthh3963
    @parthh3963 4 ปีที่แล้ว +2

    best explanation with a really non- intimidating code . Thanks❤

  • @amirthavarshini-w6u
    @amirthavarshini-w6u 3 หลายเดือนก่อน

    ❤❤

  • @deepthiraghu3640
    @deepthiraghu3640 3 ปีที่แล้ว

    kaafiii accha sikhaya hai!!!!!

  • @gauravshimpi6485
    @gauravshimpi6485 4 ปีที่แล้ว

    nicely explained sir....

  • @murugank9369
    @murugank9369 2 ปีที่แล้ว

    Thanks a lot sir

  • @umabharathi3700
    @umabharathi3700 ปีที่แล้ว

    thank you brother

  • @nmn02
    @nmn02 3 ปีที่แล้ว

    Can you please provide the code🙏🙏

  • @webdevelopermh
    @webdevelopermh 3 ปีที่แล้ว

    Thanks

  • @samriddhprasad4915
    @samriddhprasad4915 3 ปีที่แล้ว

    Nice👍👍

  • @tanyakemkar310
    @tanyakemkar310 4 ปีที่แล้ว +2

    Thanks❤

  • @Nationviews
    @Nationviews 3 ปีที่แล้ว

    And your code is also not acceptable to hackerrank

  • @shrikantpawar1142
    @shrikantpawar1142 3 ปีที่แล้ว

    ❤️❤️❤️❤️❤️❤️ it's helping me a lot

  • @masterofnone6565
    @masterofnone6565 3 ปีที่แล้ว

    thank you sir

  • @tasmeemjabinmeem9600
    @tasmeemjabinmeem9600 3 ปีที่แล้ว

    thanks..

  • @debnathvlogs
    @debnathvlogs 4 ปีที่แล้ว

    Bhai tumhari hindi zada achhi hai to tum hindi mai hi samjhao... Communication accha hoga

  • @syedabbas4712
    @syedabbas4712 4 ปีที่แล้ว

    Perfect

  • @saikishore5180
    @saikishore5180 2 ปีที่แล้ว +1

    Send code bro

  • @amanpreetkaur1738
    @amanpreetkaur1738 3 ปีที่แล้ว

    Thnkuu sooo muchhh

  • @lucifer18674
    @lucifer18674 2 ปีที่แล้ว +1

    Sir ise print karke btaye

    • @lucifer18674
      @lucifer18674 2 ปีที่แล้ว

      Apke code me printf ka use hi nhi he

  • @basantakumarmohapatra9109
    @basantakumarmohapatra9109 3 ปีที่แล้ว

    thank ❤️

  • @adarshrana8243
    @adarshrana8243 3 ปีที่แล้ว

    Bhai yar samjh me aaya bhi aur nahi bhi

  • @adarshrana8243
    @adarshrana8243 3 ปีที่แล้ว

    Bhai code pura de dete to maza aa jaata dimag ki dahi ho gai bc subh se laga hu 1:30 baj gaya ho hi ni ra

  • @soIatido
    @soIatido ปีที่แล้ว

    Thank you very much for this. I was able to visualize the solution just from the first few minutes of the video!
    Here's my code based on your video:
    #include
    int main()
    {
    int n=5,array[100][100]={0},i,j;
    for(i=0;i

  • @sharmisthachakraborty256
    @sharmisthachakraborty256 3 ปีที่แล้ว

    Thank you sir

  • @tharunampolu80
    @tharunampolu80 3 ปีที่แล้ว

    Thank you bro

  • @nihalgupta5029
    @nihalgupta5029 2 ปีที่แล้ว

    Thankyou :))

  • @sufianshaik2765
    @sufianshaik2765 3 ปีที่แล้ว

    thank you bro