Spiral Traversal - Solution | 2-D Arrays | Data Structure and Algorithms in JAVA
Vložit
- čas přidán 19. 07. 2020
- Please consume this content on nados.pepcoding.com for a richer experience. It is necessary to solve the questions while watching videos, nados.pepcoding.com enables that.
NADOS also enables doubt support, career opportunities and contests besides free of charge content for learning. In this video, we discuss the solution where we are required to traverse spirally in a 2d array and display the elements of the 2d array in the same manner. For a better understanding of the problem, click here: • Spiral Traversal - Que...
For a better experience and more exercises, VISIT: www.pepcoding.com/resources/o...
#pepcoding #programming #freeonlinecourses
Have a look at our result: www.pepcoding.com/placements
Follow us on our FB page: / pepcoding
Follow us on Instagram: / pepcoding
Follow us on LinkedIn: / pepcoding-education
before watching this video i was thinking the problem is so tough,but sir your explanation really changed my mind.
mene pure youtube par aisa koi tutor nahi dekha you are extraordinary.and you deserve more Subscribers.mughe to ye samagh nahi aa RHA log etna accha channel leave krke or channels ko 100-100K subscriber kaise de dete hai
bhai linkedin/fb pe ek post likh do, ya college mei webinar kra do. Viewers ko pta chal jaega. Sabka bhla hoga. Hmara bhi, bacho ka bhi
@@Pepcoding you are an extraordinary teacher and you are doing so much effort to prepare us from zero to pro level.I'm referring to all my friends to join this channel.
Thankyou! so much sir.
@@Pepcoding I'll surely write about your channel on Quora and LinkedIn. You're one of the finest teacher I ever saw. Kaash, aapke channel k baare m pehle pata hota. Now, I'm in 6th sem, still have one year left. Learning from you everyday, sir.
@@56_ashishsingh91 It is never too late bhaiii...jb start ki tab accha...pelo accha se..
Blown away by the explanation!! Hats Off you made it super smooth + I remembered the logic right away ! This is my first video of Pepcoding.. You made it so easy.
What an Explanation! This is amazing. Thank You!
Amazing explanation, planning to binge watch all problems!!
You are one of a kind sir ! Gonna enroll in your course very soon !!!!
I tried this question in which spiral starting from left... my code passed in all test cases... thanks for the wonderful explanation ... now i'm perfect in this question. thanks alot
You make any difficult problem very very simple. Thank you so much!!
I am glad you liked it. I also hope that you are watching till end and trying to understand the what, how and especially why of the problem.
If you like our efforts, we request a review
g.page/Pepcoding/review?rc
You can subscribe to our channel here
czcams.com/users/Pepcodingabout?view_as=subscriber
Thankyou for the videos Sir! hoping to complete most of it by the end of 2022😄
most underrated channel. Great Explanation. 👏
very well explained, i can't find such an easy explanation over internet . Thank you Sumeet sir.
haven't seen a teacher like you before
i wish i could meet you in my life ; you are legend sumeet sir. My coding skills are improving day by day nd it is just because of you sir. you are really a god for me sir you are the best teacher. lots of respect and love from my side sir.
Just keep practicing and you'll meet him when he'll take ur interview
Sir aapne jo smjhaya h naaa... Kasam se maza aagaya... Bahut jbr10
bro ur a saviour.. ur explanations are god level explanations
Thank for such an easy explanation!
Extremely beautiful and simple explanation ❤️
awesome explanation sir, I will never forget this logic
Visiting first time but i must say i m totally impressed...such a smooth teaching
Amazing explanation Sumeet sir. Thanks
Bro maza aa gya yaar,you r awesome sir.
Maza Agaya sir
I wish I could study the complete syllabus of DSA from you👌
Made it so simple. thank you!
Sir made the while loop terminating condition so damn simple & cool.
Kya baat hai sir, kyaabbaat hai sir!!. Yeh baat hai sir!
Sumit bhai you are great...kitna simple explaination
Thank you for teaching this program.🙏🙏
Most underrated channel for coding 🙌
Thank you for this super simple explanation!!
Glad it was helpful! for better experience and well organised content sign up on nados.io and start learning.
Loved the way to teach🙏
Great explanation, Subscribed❤
Thanks a ton for the best explanation sir
🙏🙏🙏🙏🙏🙏
Best teacher in the world !!! I'm amazed by the explanation.
Glad you loved it! For better experience and well organised content sign up on nados.io and start learning.
What an explanation! Loved it!
Glad you liked it!
Sir, Aapne bohot achhe se explain kiya hai solution. Sab samjh aa gya thank you
I am glad. Keep learning.
Simply amazing 🔥
Thanks for this video Sir, it cleared all doubts related to this type of problem
You are most welcome
very nice explanation .Thanku sir!!
This is seriously good explanation. I mean his explanation made this leetcode medium problem look like a very easy problem.
ye leetcode ka hai?
@@vinayjangra1401 Problem 54
Great explaination.
great work pepcoding
Sir great video 👌.Sir I request you to put more program on array and recrusion.
best teacher on you tube
Thanks a lot, Sir
this video is really helpful, thanks for making this
Glad it was helpful!
Keep learning.
And for better experience, visit nados.io, where you will get well curated content and career opportunities.
Apke tutorial bahut ache hai sir thanks for making the vedio
I am glad you liked it. I also hope that you are watching till end and trying to understand the what, how and especially why of the problem.
If you like my efforts, I request a review
g.page/Pepcoding/review?rc
Thank you so much sir!! You're amazing
Keep supporting and keep loving Pepcoding😊
Awesome sir...really loves alot ur way of explaining
Thanks a ton. For better experience visit on nados.pepcoding.com
Also follow our Instagram account to stay updated.
instagram.com/pepcoding/
very helpful thank you sir
Thankyou so much sir
Bahut khubsurat explanation sir....thank you :)
Thankyou beta!
I am glad you liked it. I hope that you are watching till the end and trying to understand what, how, and especially why of the problem.
If you like our efforts, will you like to write a few words about us here (www.quora.com/What-are-the-good-websites-to-learn-data-structures-and-algorithms )
sir, you make the explanation very interesting nd addictive..maza aagya
Keep watching
sir you are doing a great job.Thankyou sir.
Thanks and welcome
Thank you
Awesome explanation. Thank you sir
Glad to know that you liked the content. I hope that you are watching till the end and trying to understand what, how, and especially why of the problem. If you like our efforts, will you like to write a review about us here - g.page/Pepcoding/review?rc
maza aa gya!
mazza aa gya
Easiest explanation ever😎
SIR you are OP,pls make a video on spiral traversal of 3D matrix too
the best explanation ever...
Keep learning.
And for better experience, visit nados.io, where you will get well curated content and career opportunities.
thanks for this sir..
Will it work ?if we write in the condition of while loop like : while(int k
rather than write count and total elements just write "if(maxr < minr ) return; " after the loop of bottom wall
Wow i m so glad,i did this question on my own😊😊
Yay!! I am glad too. Keep learning
sir
i think it should be (cnt
its starting from 0 , so sir wala correct hai
thanks
ur best bro....such an intersting lecture...
Thanks a ton. thanks for motivation
Can i use while(minc
🔥🔥mza agya. Jai ho sir ki.
thank you for motivation beta
awesome
SIr, what do you mean by, "dry run karke dekho."?
U r awesome awesome awesome sir
Best on youtube
Thank you so much sir ❤
Glad it helped!
Keep learning.
And for better experience and well organised content visit nados.pepcoding.com
Sir Max column ko array[0]. length kyu liye ?
Hello Sir, Big Fan, great explanation... but there is one small improvement that I could think of...instead of checking cnt < tne inside the for loop condition, if we could add
if(cnt == tne){
break;
}
between left and bottom, bottom and right, right and top, there would be a few less condition checks in total.
I have started practicing on NADOS, great platform Sir. Thank you so much.
For better experience and well-arranged content
visit- nados.pepcoding.com
Also you can post your query on community tab.
Don't forget to follow us on Instagram
instagram.com/pepcoding/
smoooooooth 💕
Very good explanation.
Glad you liked it
best tutorial.
Thankyou beta!
Keep learning and keep supporting Pepcoding😊
sir you are just awesome
Thankyou beta!
I am glad you liked it. I hope that you are watching till the end and trying to understand what, how, and especially why of the problem.
If you like our efforts, will you like to write a few words about us here (www.quora.com/What-are-the-good-websites-to-learn-data-structures-and-algorithms )
@@Pepcoding sure sir
Sir what about the structure...?
What if we want to maintain the structure of matrix after spiral...!
at 5:17 can u explain why u take j< arr[0].length instead of arr.lenghth
@@nikhilflautist ya sir i understand it
And thank u for giving time to clear my doubt👍.
G.O.A.T
very nice explanation sir
Thank you for supporting
sir n = 0 m = 0 put krne pe out of bound aa rha hai
Thank you sir🥺🥺
You are welcome and If you like our efforts, please upvote the comments written by the students about Pepcoding here (www.quora.com/What-are-the-good-websites-to-learn-data-structures-and-algorithms )
@@Pepcoding Upvoted sir.
shandaar jabardast zindabaad sir..aaj tulsidas hote to DSAcharitramanas likhte apko idol mnake ;P
Haha...thankyou😋
If you like our efforts, please upvote the comments written by the students about Pepcoding here (www.quora.com/What-are-the-good-websites-to-learn-data-structures-and-algorithms )
sir after running it an error occurs shows that there is an "not a statement" error in loops . what to do to fix it.
For better experience and precisely organised content visit - naods.pepcoding.com
Also you can post such query on community tab.
Don't forget to follow us on Instagram
instagram.com/pepcoding/
nice video dear ,and can you make video playlist on data structure in java:)
yahan hai playlist
www.pepcoding.com/resources/online-java-foundation
Great
keep motivating, keep learning and keep loving Pepcoding😊
Best explanation ever 😁😁😁
Glad you liked it but for better experience and precisely arranged content.
visit - nados.pepcoding.com
@@Pepcoding Yes sir, I am currently coding in nados and coming here for video solution
Dekho bhai aisa hai
Nahi koi sumeet sir jaisa hai
nice
Keep learning.
And for better experience and well organised content visit nados.pepcoding.com
didn't even think of the box approach
Time complexity going to be O(n) ?
@Himanshu Kataria is it based row and columns if is it based on 1d time complexity should be O(n) ?
count
niiiiice
I am glad you liked it. I also hope that you are watching till end and trying to understand the what, how and especially why of the problem.
If you like our efforts, we request a review
g.page/Pepcoding/review?rc
You can subscribe to our channel here
czcams.com/users/Pepcodingabout?view_as=subscriber
Other youtubers: so we do with algorithm
Bhaiya: hold my pen
bhaiya aaj hi poora 2d array upload kar do, aaj toh flow bna hua hai
hanji. aj poora 2d ho jaega. 1d ke bache hue questions ki bhi koshish rahegi
bhai bata raha hai ye chilla isse jyada pyar se to mera math ka teacher padata hai
code shows out of bound exception
Beta ek bari dubara kr k dekho, kbhi internet issue ki vja se bhi error aa jata h and if the same error still persists, then let me know.
@@Pepcoding sir i have rectified the error. i ki values print kra ke dekh li. Then found out that i had placed minr-- in one place instead of minr++.
Thankyou Sir.