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.
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
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.
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
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.
But man he didn't give the brackets{} to for-function hence it doesn't need to be correct.
Kaha out put parfect please input 11 then the code will give you wrong result
@@Nationviews code is correct bro maybe u forgot to add white spaces(space bar) or
somewhere so that ur test cases are getting wrong
How did you built logic and how you approached to this kind of problem .
I find my self difficult while doing this 🙏🙏🙏
same problem bhai :(
Same here
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
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 😢
No Bro, you practise regularly , you logic will improve
Bro you taught really well . Your cide was simple to understand though it has greater time complexity.
Thank you so much, brother. You made the code in a simple and easily understandable way
Thxs...bro....We will help to share ur channel...!!!
Thxs for explaining ❤️❤️❤️😘
No difficulties after you taught!! Thanks...
thank you so much bro,your code is very easier to understand :)
you are most help for solve hacker rank problems thank you so much,,,.............
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
correct output
Thank you so much for this video!! very well explained...
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.
hey how do we print it? codefor printing the values can you please explain me
Thanks a lot bro. I was just searching someone to understand how to implement it. Codes on Google were very confusing.
Abey Answer print toh karde last main......tune video pause karke problem solve kar diya lekin hum log aese nhi kar sakte :(
Haa
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
Practice se hojayega Bhai
Your code is still not working
Refer this : github.com/MahadevGopanpalli/Hackerrank/blob/master/Pattern_Printing.c
Very nice explanation. Thank you so much.
Bro isme printf kha hai 🙄
Very clear explanation sir...Thank you soo much
Nicely explained, try hindi for better explanation
you explained more excellently than any others. I understood that code because of you. thanks
Thanku you deserve that ad😁
Voice is very slow
how do you know that the size formula is: size = n * 2 - 1 ?
That is the thing of logic like, anyone can define their own formula for exp[ected outp[ut
Through observation.
Nice explanation bro
why are you using "or" operator instead of and operator as we need to satisfy all conditions right !!
but do u get the logic or not ? means samaj me aya kya code?
@@dev.19.community yes . can we use "and" operator instead of "or" operator?
no then the code will not work then...
Indu chundi or operator should be used
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
I really appreciate your work. Thanks alot!
Bro u really helped me understand this question 🙏 thnks a lot man ❤️
Really helpful, thank you
Very nicely explained. 🎉🎉🎉
I tried solving the same code in hackerrank but its giving different output
check it again , stritly look || && and operators
It shows segmentation fault
I am initiating array with 1 rather than 0 but i am not getting the right output.
Then initialize the end= len not len-1
Initialise end with either end
bahot badia explanation
great explanation........really!!!!!!!!
kya explanation tha !! classic way main samjhaya .. bhai wo variadic fucntions wala question asach samjav jara
i got it very easily
Great :)
Thank you bro, u used pen and paper at its best
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?
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
Thank you so much
Tq so much for ur explanation u helped me alot sir 🙇🙇
Thanks , it means alot
you should copy paste the entire code and give it in the description box or in your comment
size of array should be const no variable how is it work?
Really nice solution.Thanks!
Thank you brother ,
for your solution ...
👍👍
It's not working.... Same code.. I run... But... Not working......
very well explained 💯
thank you so much
the logic helped me a lot
Great approach..
I am finding to understand the code...step by step process..help us to be good in problem solving skills
Ohk Bro..
& Feel free to comment if any coding problem
we will always try our best
Thank you so much sir✌😍
to print this solution:
for (int i =0; i
Need better explanation.
Thanks a lot!
bro can you send this code as a file. please need this
hey do without array by just using for loop
code is working bro and good explanation
Thanks bro, it is really helpful
You r too good!, clearly explained!!
what should i do to give space between 222
use printf("%d ",a[i][j]) after d give one space
Sir ye 9 tak he sahi hai program 9 ke baad Galt hai
best explanation with a really non- intimidating code . Thanks❤
Glad you liked it!
❤❤
kaafiii accha sikhaya hai!!!!!
nicely explained sir....
Thanks a lot sir
thank you brother
Can you please provide the code🙏🙏
Thanks
Nice👍👍
Thanks❤
And your code is also not acceptable to hackerrank
❤️❤️❤️❤️❤️❤️ it's helping me a lot
thank you sir
thanks..
Bhai tumhari hindi zada achhi hai to tum hindi mai hi samjhao... Communication accha hoga
Perfect
Send code bro
Thnkuu sooo muchhh
Sir ise print karke btaye
Apke code me printf ka use hi nhi he
thank ❤️
Bhai yar samjh me aaya bhi aur nahi bhi
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
Bro did u got the correct output ?
@@kishanprajapati5521 no
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
Thank you sir
Thank you bro
Thankyou :))
thank you bro