Bhaiya Questions nahi hote 😭🥺 | How to approach a problem? | Roadmap to problem solving!

Bhaiya Questions nahi hote 😭🥺 | How to approach a problem? | Roadmap to problem solving!


Bhaiya Questions nahi hote 😭🥺 | How to approach a problem? | Roadmap to problem solving!

I have been getting this doubt for so long and I have also struggled with the same problem and here is my solution for that. Do watch the video till the end.
Also, Like and share ❤️

🔴 Don’t Click this! https://bit.ly/381DYq6

🔴 Register for the Scholarship test here: https://bit.ly/3E0HC0S
Use code NISHANT50

🔴 Do check out the Placement Preparation guide for free resources related to Languages, DSA, Core CS Subjects, and much more!
- Placement Preparation guide Playlist:
   • Placement Preparation guide  

🔴 Connect with me here:
- Instagram: https://www.instagram.com/chahar__nis
- LinkedIn: https://www.linkedin.com/in/chaharnis
- Telegram Channel Link: Grow Together: https://t.me/chahar_nishant

------------------------------------------------------------------------------------------------------------------------------------------------
Placement Diaries:    • How to get 50 Lakhs CTC? | From No in…  
--------------------------------------------------------------------------------------------------------------------------------------------------
Products I use:
Green Soul Vision Gaming Chair: https://amzn.to/3g0yT5K
Insta360 Go 2: https://amzn.to/3xOXC39
Blue Ice Mic: https://amzn.to/3m2a8Kn
Ipad Link: https://amzn.to/3gIBbWE
SSD: https://amzn.to/2SyDyDA
USB C Hub: https://amzn.to/3A0n6Nb
Ipad Air 4 Case: https://amzn.to/3y0u174
SSD Case: https://amzn.to/3jk6BWm
Macbook: https://amzn.to/3A361Cp
Maono Mic: https://amzn.to/3hbw3MM
Boya Mic: https://amzn.to/3or2czF
Tripod: https://amzn.to/3qYPV7m
Gorillapod: https://amzn.to/3iXEeef
Old Chair: https://amzn.to/3r5cebo
Smartphone: https://amzn.to/30Kv0tP
Old Laptop: https://amzn.to/3j0hP0a
Portronics Laptop Stand: https://amzn.to/3pzi2dR
Ring Light: https://amzn.to/3givuP9

✨ Hashtags ✨
#NishantChahar #Microsoft #SoftwareEngineer #FAANGM #FAANG#NSIT #NSUT #engineering #internship #college #Freshers


Content

0 -> Brother at your request I started 90 days DSA challenge but
3.322 -> I am unable to solve questions
4.64 -> means I don't understand them
5.836 -> how to create logic in it
6.88 -> how to solve the question
8.176 -> how to approach the question
9.826 -> I don't understand anything
10.922 -> so this doubt is very common
13.741 -> many people ask in comments
15.295 -> in DM also they say we don't understand questions
19.719 -> how to do questions ? what to do
21.519 -> so in today's video we gonna talk about this
24.66 -> okay!
25.358 -> I will tell you a complete cycle that how to approach a question , then how to solve it
30.68 -> if it doesn't solve then what are the steps
32.024 -> if it is solved then what are the steps
33.46 -> I will tell about all those things
35.025 -> one more doubt that comes is that I do solve a question but after two months when I revisit it I forget it
41.8 -> that I solved this question , this also came in interview but it is unsolvable now.
46.568 -> so today we gonna solve all your doubts in this video
50.727 -> Hi guys I am Nishant Chahar software engineer at Microsoft
53.255 -> so before starting the video do like the video. Your one like is very motivating
58.931 -> and it helps me to create more such videos
61.794 -> so lets start without any delay
63.872 -> lets answer first part of question that
66.097 -> when you see a question how you should approach it
68.75 -> how to find its solution
70.673 -> okay!
71.559 -> now a normal question came to you
73.697 -> what you should do first
75.265 -> first you have to read the question carefully
77.324 -> now you will say that this is obvious what are you telling new in it
81.204 -> so listen first. listen completely
83.389 -> first you have to read the question and breakdown it in pieces
86.933 -> the information that is given in question
88.717 -> like we used to do at the time of jee
90.251 -> we used to find the information from the question that we used to get
93.708 -> and then we used to try that information
96.23 -> right?
97.038 -> similarly we have to use the same approach here
98.771 -> what we have to do is we have to understand the question and take out information from it
101.756 -> that this question will be solved by which data structure
105.049 -> or which thing is going to be used in this question
107.595 -> if we are unable to think what is going to be used
109.739 -> then we start writing our basic solution that is bruteforce on paper
117.053 -> lets take an example for this
118.531 -> you have given an array
119.523 -> you have to find the sum of a subarray whose sum is equal to some X number
123.066 -> okay!
123.558 -> approach will be very simpler
124.693 -> that we have found everything
126.231 -> that we found all the arrays that exist in this world
128.858 -> we found the sum of everyone
129.763 -> and where where the sum is same as required we returned it
133.459 -> so it starts from here
135.512 -> you found a basic solution
137.512 -> now you have to start building upon that solution
139.989 -> many people stuck here that I understood its bruteforce but I don't understand its optimization
144.449 -> okay!
145.309 -> here your biggest companion is hint
149.505 -> so when you are practicing
150.884 -> you are learning things
151.78 -> it is not necessary that the approach that is applied there, you know it before
155.048 -> assume in hint it is written that you have to use sliding window
158.203 -> and you don't know what is sliding window
159.941 -> how to use sliding window
161.456 -> it is not like that people know it all before
165.408 -> they know it all before and they apply it
168.559 -> everyone learns on their way
170.64 -> right?
171.226 -> so you understood that something is given in hint and I have to apply it in my solution
175.532 -> and you don't know how
176.538 -> so first you will understand that what is sliding window
179.449 -> what is sliding window actually
182.353 -> you understood what is sliding window
183.674 -> and then you tried to apply the solution that you wrote on paper
187.521 -> and you did it
189.237 -> if you did it then its very good
190.845 -> means end.
191.809 -> here your brute stops
193.342 -> but if by chance you don't do it
195.621 -> okay!
196.536 -> so you saw another hint
198.054 -> assume there are two hints
199.199 -> generally one or two hints are there
200.92 -> in second some other hint is given
202.687 -> that you have to apply that thing
205.669 -> you tried again after reading the hint
207.169 -> and lets consider that you are not able to solve.
210.337 -> then you should never be demotivated
212.483 -> because you are learning new things so it is a possibility that your solution doesn't come
215.981 -> means it is very normal
217.467 -> after that what we will do is
218.652 -> there is a community section
220.632 -> if you are practicing on leetcode there exist a community
223.144 -> where people post their best solutions
225.106 -> they write approaches
226.458 -> in that what you have to do is, you have to go to most voted answers
229.431 -> never go to the newest one
231.241 -> many times newest are not that much good
232.576 -> you should go to most voted one
233.554 -> there people explain their approach very well
236.375 -> now you have to read that approach
238.281 -> and understand that what he has done that
240.221 -> what you were missing
241.084 -> if you find it then very good means
243.131 -> now you apply it and try to submit your solution
246.263 -> if it happens ,you have learned it
248.029 -> okay!
248.323 -> process is lengthy but you learned it
250.669 -> your code run.
251.571 -> if still you are not able to solve then try for some more time and after that you should see its solution
256.256 -> and keep a pen and paper with yourself always
258.541 -> a notebook also and write in that notebook what step you missed
262.013 -> if you will solve problems like this you will never forget that
266.038 -> you got stuck in that thing and how to do it now
268.617 -> if you will be getting the same problem in some other question
271.987 -> it will automatically come to your mind that I did this thing there
275.189 -> I forgot there but now I will not do it again
277.957 -> so you have got a great opportunity
280.485 -> coding ninjas is conducting its scholarship test
283.338 -> on 19th and 20th December at 9 pm
285.685 -> in that top performers will get 100 percent scholarship
289.599 -> apart from that people who will be enrolling in any course after that test ,will get a Christmas day hamper gift
296.359 -> in that Christmas hamper what you will get is a book named ace your coding and interviews
302.113 -> of coding ninjas
303.326 -> that's mrp is1500 rs.
304.602 -> that will be delivered to your home for free
306.492 -> also you will get a winter training certificate
308.728 -> if you don't know about coding ninjas
310.85 -> coding ninjas is one of the largest coding education platform
313.784 -> teachers here are iit, stanford graduates and they have worked in companies like amazon, facebook
319.435 -> and their course structure is really good
322.736 -> apart from that you also get one on one doubt resolution here
326.104 -> support is really good
327.645 -> hint videos are also there
329.193 -> so means it is really good thing
331.305 -> I personally did my c++ data structures course from here
335.697 -> so why are there two dates 19th and 20th december
338.026 -> on 19th if you don't have time or because of any technical issue
341.417 -> you are not able to give test on 19th
342.85 -> you can appear in text next day at same time
346.307 -> what is going to happen in this test
347.629 -> there will be 30 aptitude questions
349.095 -> you will say I don't know programming
350.967 -> so what will I do in test
352.091 -> so there will be only aptitude questions . you just practice aptitude questions
356.622 -> and you will get 50 percent off on registration fee if you use my code nishant
360.629 -> okay!
360.919 -> you will get other details if you click on the link below
364.618 -> now lets continue to our video
366.903 -> okay lets understand this once in short
368.918 -> that what is the system
369.898 -> first you have to solve a problem in smaller problems
372.859 -> and have to find the simplest bruteforce solution
375.21 -> that you will find
376.055 -> because you are practicing since many days. so you will do it
379.062 -> no tension about that
380.449 -> now you are unable to understand the optimization
382.102 -> that you find an n square n cube type dangerous bruteforce solution
387.029 -> that is working but that is taking so much time
389.618 -> then what will you do you will see the hint
391.025 -> you will get an idea from the link that this thing can be applied here
393.923 -> but you don't know that
394.787 -> you will learn that thing and apply here. if it happens then very good
398.286 -> if not happen then you will see another hint
400.754 -> if next hint is not given then you will go to the community section
402.875 -> there you will read people's approach . what appraoch they have applied
405.391 -> what are you missing in your solution
407.018 -> then you will apply it and try to submit if it happens then very good
410.319 -> if not happen then try to read its solutions
413.741 -> like okay I had to implement this like this, I missed that thing
416.685 -> and you will write that thing in your notebook
419.912 -> after that you will never forget this thing
422.321 -> okay! our next tip is be confident
424.937 -> now you have learned many concepts
426.493 -> you are giving many test possibility is that your one test doesn't goes well
430.02 -> it can happen that one question stucks
431.76 -> it can happen that you are unable to solve means anything can happen
434.268 -> right? so never be demotivated because of that
437.148 -> okay!
437.892 -> just working on . consistency is going to help you
441.933 -> and never loose your confidence
443.677 -> be confident. and with that you can write in comment section that I am op
448.66 -> keep confidence in yourself
450.383 -> okay!
451.178 -> everything will happen. you are smart. you will achieve everything.
454.782 -> you never have to keep tension
456.381 -> now you have to keep in mind some other things also
458.972 -> like one very important thing is pair programming
461.538 -> like if you are doing it alone, it makes trouble
465.151 -> like you don't have motivation many times
467.1 -> anything you are not understanding whom will you ask
469.19 -> you stuck in these things
471.398 -> what happens in pair programming that you are doing it with your friend
474.495 -> that brother today I did this thing
476.197 -> you did this. you tried these questions
477.757 -> you sat in this contest
480.037 -> yes I sat.
480.597 -> my rank came good
481.494 -> so you realize that I should work hard so that
483.647 -> my rank becomes better than him
484.609 -> and you both are growing a healthy competition
487.759 -> in pair programming two people are there. they are more in group
490.56 -> means group should not be very big
493.063 -> means 4-5 people are good
495.694 -> you must have heard the quote that you are the average of five people you are with. okay!
498.944 -> you are the average of five people you are with. okay!
502.561 -> so if you live and talk with good people, ultimately you become good
507.902 -> like this is...
508.785 -> you should not be complex
510.386 -> learn from them and good
513.086 -> many people say that my college do not have anyone with whom I can do pair programming
518.193 -> for that a solution is arriving very soon. so you need not to worry about that
522.362 -> one more important tip is if you are participating in some contest
526.716 -> or you are trying some question
527.756 -> after that what you have to do if it happens by you
530.704 -> after that you must see the solution
533.133 -> best solutions or toppers solution , you must read them
539.488 -> from that you learn new concepts many times
541.651 -> by chance you have a question that you did via normal dp
544.532 -> but by applying binary search that question may be solved fast
548.694 -> or by applying any segment tree...means anything
551.764 -> I am telling random
553.194 -> by that it can be better
554.936 -> and you don't even have idea of that concept
556.818 -> that how this happens
557.841 -> then if you read that solution you will learn new things
560.437 -> and if you keep learning that thing again again , you will become smart
565.946 -> one important thing is that
568.392 -> you never have to stuck at one problem
571.065 -> now what happens
572.905 -> we take things on ego
574.041 -> that why this question is not solving by me
576.559 -> means I studied that much. I did 500 questions of array why this 501th question is not solving
581.613 -> we take 2-3 days
583.51 -> this is not good. set your time limits that I will apply this much maximum time on one question
588.462 -> if it is a difficult question you can extend time
591.316 -> 1 hour, 1.5 hour , maximum 1 day not more than that I will put on one question
595.856 -> next day start reading its solutions
598.661 -> by that you will get to learn
600.412 -> but if you apply 3-4 days on only one problem
603.494 -> means it will be very difficult
606.372 -> you don't have to take things on ego
608.039 -> if you find it is not happening by me , learn it
611.166 -> next time you will do that thing
613.285 -> so that is a very important tip
616.614 -> write I am op in comment section
618.77 -> and I will keep bringing these type of videos to you . Keep supporting
623.205 -> Lets meet in next one till then bye
625.414 ->

Source: https://www.youtube.com/watch?v=CRoA_aNKYWs