can somebody help me to know that how do we decide the algorithm technique to be used ? like i should apply greedy approach to a problem or DP or divide and conquer.
or i should always try greedy and if it is giving WA then apply DP?
Thanks in advance :)