Please enable JavaScript.
Coggle requires JavaScript to display documents.
CP (TIP, Caution!!, Algorithms, APPROACH AS ON 27-06-21, Be creative,…
CP
TIP
-
-
-
sometimes we do a mistake in thinking in step x and we idetify it after step x+n n>=1 but we sometimes forget to check that are the steps from x to x+ n now valid after we have made correction
-
-
Knowing the different approaches to solve different types of algos greedy ,dp ,.. knowing approaches like two pointer Helps and More so if you can identify the approach required to solve a problem then you can more easily solve it
IMP note Some problems may require more than one idea greedy + binary serach(divideandconquer)
Or sorting + greedy
-
-
-
-
EVEN IF YOU ARE ABLE TO SOLVE PROBLEMS DO CHECK THE EDITORIAL FOR BETTER SOLUTIOINS IMPLENTATIONS AND OTHER THINGS
Caution!!
Remeember ideas/insights !=SOLUTIONS THEY ONLY give a direction to think upon Dont dismiss ideas/insights too early beacuse they may not be completely correct or complete but may be a starting point or an solution of a particular case or a part of the solution Initally write all the crazy ideas on paper then slowly try all of them check each one carefully think can it be a solution in a particualr case should i take cases
Uncertainy something doesnt happen / may happen every time but it can happen in somecases so it is a hint t divide into cases not to get confused give up
If the input is within the integer range that doesn't mean that you can use integer think about what the intermediate value will lie in that range
-
APPROACH AS ON 27-06-21
READ THE PROBLEM CAREFULLY ,UNDERSTAND AND NOTE SOME IMPORTANT POINTS
-
-
Observe the problem and its solutions write them down (dont kill ypur observations) just become aware
Get insights make hypothesis and create more observations maybe of special cases and think deeper on the pain poinst those cases not resolved observe them simplify them and hyposthesis again
hyposthesis proof observations cycle (repeat ) be antifragile every time an hypothesis fail you have a new obervation
Try proving your hypothesis and gather any idea on the observations and dont kill ideas prove the ideas find the cases remove uncertainty pain points
-
-
-
-