Solve Any Pattern Question With This Trick!
HTML-код
- Опубликовано: 6 июн 2024
- In this video we'll look at how you can solve any coding #patterns question in a step by step manner, and what the thought process should be like.
👉 Resources
- Join Replit: join.replit.com/kunal-kushwaha
- Complete Java DSA playlist: • Java + DSA + Interview...
- Code, Assignments, & Notes: github.com/kunal-kushwaha/DSA...
Take part in the learning in public initiative! Share your learnings on LinkedIn and Twitter with #DSAwithKunal & don't forget to tag us!
➡️ Connect with me: www.techwithkunal.com
=========================================
Timestamps:
00:00 Introduction
02:34 Importance of Pattern Questions
04:44 Prerequisites to solve Pattern Questions
05:03 Approach to solve Pattern Questions
05:14 Step 1
08:32 Step 2
11:12 Step 3
13:05 Pattern Question 02
14:41 Pattern Question 01
16:17 Pattern Question 03
20:41 Pattern Question 04
22:26 Pattern Question 05
33:49 Pattern Question 28
37:40 Pattern Question 30
40:59 Pattern Question 17
45:01 Pattern Question 31
55:53 Outro
#placement #dsa #interviews
Complete Java DSA playlist: ruclips.net/p/PL9gnSGHSqcnr_DxHsP7AW9ftq0AtAyYqJ
Thanku for all your efforts and all the things you are doing to help us grow, Thanku so much🥹
❤️🙏🏻
thanks brother
The best JAVA Complete Package I have ever seen. Keep up the great quality work. Your way of teaching is one of its kind among others. Thanks for inspiring many non-CS background students or working professionals. Hope this series reaches millions of people around the world. Much obliged.
Hey Kunal, I am not sure why I am watching this as I am not from development,Your amazing skills and your passion for teaching is incredible...I wish I go back 18 years of my career to learn all these development courses,to haveca strong foundation!!!.God 🙌
.keep up the good work
Thank you for everything you do. You are helping lot of students as well as professionals grow. Such a blessing to this world❤️ I’m so excited to watch all your courses.
Absolutely spot on, other popular channels like Apna College should learn how to teach from this guy.
pattern 31 is from hacker rank, it took me 4 hours to understand this pattern a few months before, Kunal you have explained it in such an easy way awesome. and let me tell you will not find a single explanation video on youtube that has to explain it in this way
That's kunal
U may get it in coding wallah also
@ranirathore4176 i solved this in 5 min. as i am beginner and i assume you are also beginner . My best suggestion to you to improve thinking, is to stop watching and start practicing
not demotivateing or hate but I think you just need to take an another variable and put elif ladder if i/j==1 variable=4 and do it for others yeah I am a beginner in c so I think that's easy but yeah it can be time taking sometime
I just taken 20 min to complete
I have been coder for last 10 years and always feared of DSA. But after following Kunal's course I have gained so much of confidence. Its like I have re-learnt everything with different approach. Every problem can be solved multiple ways but Kunal's ways are super easy ways I must say. Going to follow complete DSA series. #DSAwithKunal
never seen a guy so cool and explained the concept in a super easy way , the way he smiled while solving is really cool.
No amount of words can express how fortunate I’m that I landed up to Kunal’s DSA preparation course… the way he teaches by providing every minute details & simplifying our thought process is beyond words. As intended you’re creating a revolution in history of DSA.
PS: it will only cost ur valuable time & no other paid course will ever teach u the tricks the way Kunal did!!!
#DSAwithKunal
Where can I get that course
@@037_cse_jananir7udemy
Thanks for teaching us like no one did till now!! One small request, please make lectures on dynamic programming as well!!
Only video its not a clickbait. Even a layman could understand the concept... Thankyouuu
"Before we get started i want to give huge shoutout to my course"😂😂
Did not see that coming.Nice one.
This was a lifesaver man , Big Thanks to you and may you be blessed with tremendous success in all your future endeavors
Hey Kunal, Just loving this series till now 😍. Thanks for creating this. 🙏
solved pattern no. 5 problem, without knowing solution. with completely different but longer approach. gaining lots n lots of confidence.. THANKS KUNAL BHAIYA😄😄
This video worked like magic now ... I'm able to solve almost all pattern problems following those three steps ... thanks to you .. solving patterns are a big challenge for me before watching this video .. great contribution to the community keep up the good work ❤
Glad it helped
Hey kunal, i'm from Bangladesh.Your teaching process is so great that i started it 15 days ago. My pray is always with you.
You can do it!
Thank you for this DSA course, Kunal! Love from Kazakhstan!
This world needs more people like you. Thanks alot!!!
The last question man!!!! I cannot believe on my eyes what I just saw, I was just like !!!!!WWWWWOOOOOOOOOOOOWWWWW!!!!!, this course is turning to be some dream come true, really thanks a lot kunal for this awesomeness that you've brought to our life, keep up the good work :) ❤
He just not teaching how to solve these patterns , he is also teaching how to approach and tackle those problems and then coming up with solutions. Loved the way of teaching, it's very organic and real. Cheers man 👑
Thank You!
@@KunalKushwaha❤❤❤❤
A committed voice to solve difficult problems.A ray of hope for those studying CS problems.
Not yet started DSA but up with JAVA basics. As nested for loop came and pattern question came as a challenge in front of me , the only video that got to my brain at that point is this one . Thanks a lot , Kunal , for sharing this tricks , committing the post mortem of the pattern based questions , which helps us in logic building of loops and iteration . Thanks .
This course will blown up the internet after Sourav Shukla classical approach. Keep Educating , we are with u. My colleagues in IITs and Nits have suggested me, and it is the first video I watched out. Very beneficial
when I was solving patterns, I was able to solve but end up with very lengthy codes for complex patterns and you solved almost every question in not more than 10 lines of code and when you were explaining the logic for last pattern question , I literally screamed 'WOW' in a very loud voice 😂😂😂
learned easy and simple ways to solve patterns,
thank you so much🙌🙌
glad I could help!
@@KunalKushwaha in a tier 3 college which and where the resourcs you use to learn the coding at this level ,, please reply your advice is very helpfull for me
@@KunalKushwaha Java
@@KunalKushwaha thank you so much..I've done pattern with less number of lines...where can I find remaining pattern solutions...i did by my own..I need to verify it..
@@KunalKushwaha In the third pattern where there was column reducing we can just change the use this in inner loop
For(column=5;column>=rows;column--).
For the last question I gave it a lot of thought but I ended up *codeless* after his explanation I was speechless 😶.
All the question with the same approach....hatts off to you Kunal. 💯
Mantap bossku ... cara hang ajar loop & basic pattern memang senang nak faham .... terbaik ! :)
From the inner depth of my heart I would like to thank you for such an awesome class. I never knew it was this easy to solve patterns problems. Hurray🎉🎉🎉🎉. You are one great teacher. 🙏🙏🙏🙏👏👏👏
You're very welcome!
++
It's 12AM but never too late for learning.
Watching this right away🔥🔥🔥🔥🤩
Hope you enjoy it!
@@KunalKushwaha
yeah sir we will
Thank you so much sir for this playlist ❤️🙏
this guy really loves what he is doing...his content is awesome..in depth and interesting
You are the best. Million times better than the computer teachers in my school. Thank You Sir.
The way he explained patterns is so easier than we can ever solve🔥🔥
dude, I have seen lot of videos on this topic. most of them had complex code.... you approach is simpler yet effective. Thanks a ton
I don't have any idea on working with patterns. You have explained it in an easy manner. Thank you.
Kunal is teaching in a brilliant way. This course is worth thousands of dollars but we are lucky that we are getting it for free. Thanks a ton kunal!
Thousands of dollars???
@@raoaman2122 woh ketan parekh hai uske pass paise ki koi kami nahi hai
Bruh this basic af. What are you talking about lol? These comments are super hyperbolic
No one can explain like you ... I was just searching for guy who talk about reason and logic behind every single step in the code .....this is the best video ever of pattern type questions
You’re welcome
Bro you figured it out how to solve all the problems? If so then can you give me the code of printing a hollow pyramid using kunal's steps?
Your problem-solving approach no one can beat .....amazing
What a teacher you are !! Thank you so much for everything.
Just found your channel and never before have i seen someone teach with such enthusiasm and passion, these are the types of classes that anyone would enjoy and learn from.
Welcome aboard!
Great Explanation.. Loved it
17:30 for Pattern 3, I did it the below way
public static void PrintPattern1(int n)
{
for (int row = 1; row = 1; col--)
{
Console.Write("* ");
}
Console.WriteLine();
}
}
19:00 for Pattern 3, focus on the numbers written by Kunal.. n = 4. rows are like this 1, 2, 3, 4 and columns are like 4, 3, 2, 1 which is reverse (i.e., columns starts from n and reduces to 1) But if we directly use variable n and decrease its value in outer forloop, no.of rows will decrease, so better to store n value in one variable and reduce the value of that variable in each outerloop. Below code explains this approach
public static void PrintPattern1AnotherWay(int n)
{
int iterations = n;
for (int row = 1; row
Thank you Kunal for this needful session.your way of teaching is very grateful.
After two days of headache in front of code your video make me understand patterns..thank you!!!keep up those amazing videos! Greetings from Greece!
I was doing time pass on RUclips then somehow it suggested me this and I ended up solving all. Thanks bro for saving my time. ❤❤❤
By the way in pattern 5 you could also use mod for second formula. For example in python I am doing this:
colrange = row if (row
Great 👍
Good Bro
Oh man ,I have got 8 years of experience in Software engineering field but I have never seen anyone that matches your passion.
Your trick are awesome ,presentation is perfect and you are right that this should reach to many people.
Keep going ✌✌✌✌
Thanks for sharing
Hello Brother I m none technical student I have already completed my MBA now I want to learn to code please could you tell me which language start the first time so I can able to get it easily...c++ or java ...
@@WomanTreader24 I love C++ but I would I advise your to go with Java as your language of choice .
Java is allegedly easier than Cpp and market is decent for Java developers .
8years experience huu in which company 🤫 ...
😂😂😂😂 8 years experience and watching a normal and simple programmer's tricks it means 8 years fake experience
Your such a goat in this trending and u covered everything with approaches no any another person deserve it.your are just remendous
Love the way kunal approaches to any problem.
After coming this long in the playlist, I am definitely feeling improved. I was able to build logic for some of the patterns, even created a PR in the GitHub repo of the bootcamp which adds new solution to pattern3 question. Thanks for everything you did and are doing for us and that too for free!
Nice work!
Kunal kushwaha I really need to mention this you are a savior this one is really superb you are taking the course to next level I decided to follow you here on
The explanation is extremely nice... The enthusiasm in you is also contagious... It helped a lot ❤❤❤
This course is providing me immense knowledge that too without any subscription fees. All thanks to Kunal for making these videos by putting in so much effort.
Kunal what you are doing for the community its just priceless courses with price of 10k can't explain concepts so easily like you are doing.. Some people are there who won't understand the value of this bootcamp right now but once they complete the bootcamp they will know that this is the best dsa course available ❤️, Keep Rocking Brother❤️
I just want to help others
@@KunalKushwaha Thank You Soo much for this help and just a small request don't join some educational institutes in the future... We want you in this channel only ❤️
@@KunalKushwaha you are doing it already bro. keep doing it. thank you. may god bless you bro. Thanks once again for all of your help.
I am solving these patterns at 3:57 am in the morning and the solution to the last pattern gave me some sort of goosebumps
You doing an amazing work my friend
Kunal, you rule them all. I have to stop your video which i was watching offline and came online just to subscribe. You are a wonderful personality. I have been developing pwa for over 6years. You are just creating a lot of insights for me. Thank you sooooooo much kk
This is the best video to learn about patterns...Thanks Kunal for teaching it in a simple way..!
my mind was blown at this point @17:53 as I used to mess with the outer loop , writing it so that it goes from n to 1, and just now got to learn that I don't have to do that anymore
You are welcome!
To the point explanation. Loved the video. I did the last question by myself but your trick was so cool. Love all of your videos Kunal❤
Glad it helped!
Thank you so much kunal for providing this level of course on youtube just free!!!!💙
heyy, thanks a lot for providing this for free; I was from a non-coding background and made this transition recently..today itself i started learning loops but was getting frustrated as i couldn't get the pattern questions right but the way you taught made things so clear in the first question itself that I was able to get the diamond pattern right without any errors in one go while i couldn't even solve right triangles correctly few hours before..thank you so much...looking forward to clearing my concepts with ur other videos as well!
Hi Kunal! Greetings from Europe! I like your course and your way how you explain. I subscribed to your channel as I think I can learn so much from you. I wish you further success!
Welcome aboard!
Thank you sir for sharing your knowledge and the most important thing I have gained after watching this video is "confidence" , first seeing those patterns I was like I can never be able to solve this type of questions but because of your explanation on how to approach these type of questions it became simple and interesting , THANK YOU SIR.
your amazing lecturer i was struggling with it, but i feel comfortable. thank you!
amazing lecture , every programmer should learn from him
I always didn't understand concentric pattern q 31 very well but you cleared all my doubts thank you
You are most welcome
Simply incredible service (help) done for the community! Can't thank enough for decoding the logic and explaining in a layman's term. 🤘🙌🔥🔥
Wish you all the more power and success!
Subscribed, liked, and shared the video playlist with my community network
Bro , in diamond pattern there is a space after star also ... how did u handle that part ???
Outstanding free course.... Thanks KK
Awesome Playlist Kunal!
Thanks a Lot!
He's Such a underrated Person he deserves 1M subs ❤️❤️
I have literally subscribed with all my accounts, because I really like the content!
Thank You!
Hey thanks kunal, this course is really awesome. Initially I was intimidated by seeing such codes and now I'm really enjoying.
best complete video to clear fundamentals+advance level concept. Keep up the good work kunal sir
AS soon as I started watching these pattern series I thought will I be able to do it...? But when he started his approach to solve a particular pattern problem in 10 lines of code and then I quickly followed up his approach and was able to solve many pattern problems which made it more simple and easy. Thanks Kunal for making these series....🤩🤩
15:33
Done Sir !
I Used To remember the code for patterns now Thanks To You Sir I can do it my self ! Thanks Again !
#include
using namespace std;
int main(){
for (int row = 1; row = row; col--)
{
cout
Hii how u manage to learn it in c++ plz reply m confused as this course is in java
I'm loving the videos.. i am enjoying the process of learning ! Thank u!
This is the best trick ever I had seen in approaching any pattern questions in java
You are actually so helpful and these questions are pure gold but could you please explain it a little more thoroughly, I'm in grade 9 and I love coding but I'm awfully new, so a little longer explainations would be so much more helpful. Thank you for this video aswell btw!
I was searching for patterns videos 4-5 days back... I watched lot of course asked in different groups. Last few days was so frustrating for me and everyone said this is easy topic. But my guy is here finally 😍 RN I started watching the video and I am pretty sure you won't fail me 🙌
Glad it was helpful!
I was mad confused why you were running the loop 2N times glad you addressed it later.
Wow🔥🔥🔥🔥🔥🔥🔥🔥itna achha explain kisi ne nahi kiya.
I am very confused when spaces are given in pattern. After this video it will solve many of the confusion which I always faced.
/* Thanks bro for the awesome video. */
you deserve million of subscribers
You are welcome 😊
Bro I always had phobia for pattern questions no lecture couldn't help me understand how patterns works ...... Your video was awesome 🙏🙏🙏🙏
Glad to hear that
I was very much scared of this topic due to visual.
But after this vedio I'm fully confident about the pattern question solutions.
Hats off to brother Kunal 🤠👍🏻
The reason for 0 is we are running the loop wrong number of times, instead 7 times we r running it 9 times. n = 2*n-1, and row,col < n times.
Again Indian. You guys are rocking on RUclips. Without you guys we won't survive in uni, college and even jobs.
Keep doing amazing work.
Thanks a ton
@@KunalKushwaha lots of love mate.
Awesome video ... Can you please keep the "pointer" visible in white board because it gets disappear while you are not writing so that whenever you explain by just moving your pen , it will be visible to us.
Solving patterns became so easy after watching this vid. Thank you Kunal Kushwaha! ♥
In love, with the way u explain! Seems like a frnd is explaining. Thanks a lot bro.
Ticket to master DSA. Thank You Kunal. How can someone be so selfless and inspiring.
Keep up the hard work!
❤❤
You just changing the whole community thanks a lot to put this much energy to making this video , your changing a lot of students life , Now dsa would not be a hard subject , with your videos is just like cake walk and yes job interview would be clear just like you said . ek chutki me ...
I appreciate that!
Thanks Kunal for making such awesome content. Helping kunal's community!
I was confused with these two things on 17th pattern. I spent 2hrs because of it. I am putting it for you guys to save your time and mind boggling. Here it is,
i) 'row loop' is running 8 times....even though it run 8 times on 8th iteration 'c' becomes 0. so it doesn't affect the output.
ii) Don't think 'c' variable stores the count of columns. Nooo, it's not. It stores the starting num of the column.
best video on youtube for pattern programs
This is video should be trending on RUclips , absolutely awesome content , cleared my many doubts
Literally brother your course made me fall in love with DSA and all credit goes only and only to your super exciting voice and so much good content over it and seriously i don't want to type much because i'm so eager to watch this video because here i'm commenting without even been watched the video but my heart knows the quality of the series so thank you once again and please do share us with your knowledge......
Hi Kunal, Its really interesting and easy to solve the patterns. the way you are explaining is awesome. I missed it 2 years before, but now also, never late to learn. Really a big thank you to the effort in helping the community.
amazing bro hats off , you literally saved tons and tons of time , amazing attitude , and the best explanation
I didn't know these type of questions are also asked in some interviews ... I remember back in highschool our cs teacher taught us the basic patterns which u covered too then my friend challenged me to make a diamond shape(Q 28) of given size .... Took some time and did it with while loop tho cuz i really used to get confused with nested for loops xD
Hi Kunal,
It would be a great help if you can share the solution for all the patterns.I request.
Your method is quite different than others.I loved your way of teaching.Thanks for this video.
Hey, doing the remaining patterns on our own after watching the video gives a much greater satisfaction. I feel the approach he taught and a bit of thinking will be enough to solve all those patterns except 1 or 2.
i really appreciate the effort that goes into teaching here.. explanations are clear and easy to understand. I just discovered this channel today and ill watch more of your lessons
This is a great course. Excellent teaching and easily understandable.
I am struggling from the last 1 year in this Pattern Topic, I loose hope for the DS algo and Placement stuff and Today I saw your video Brother and From Today I again Start preparing for Placement.. Keep It Up Thankyou once again❤
You got this!
@@KunalKushwaha 🖤
DID U GET INTO COMPANY ?
@@shahadtuglak1906
Bhaiya i felt difficulty while solving pattern based questions but when u uploaded that video ---I personally feel-" ab to ho jayega"