how will I come to know will the greedy approach work or not?
hit and trials?
Min coin change dp?
That comes with practice
You come up with an algorithm
Try it test it, once u fail then think of a test case where it’s failing
repeat again
hit and trial right?
Yeah right . …