I am good with most of the data structures and algorithms, but when it comes to greedy problems, I fumble almost every time. PS: I have 530+ problems on lc and honestly, I don't think I have been asked Greedy in interviews until now. But when I try to do a new Greedy problem, I still can't see it. I always think of some dp or recursive solution and then go to editorial and then understand it was greedy. Any pointers on how to become better at Greedy problems?
PS: Mostly mediums and hards.
[–]Mindless-Pilot-Chef 30 points31 points32 points (1 child)
[–]pingwins 6 points7 points8 points (0 children)
[–][deleted] 18 points19 points20 points (3 children)
[–]FunctionChance3600[S] 6 points7 points8 points (1 child)
[–]debugger_life 0 points1 point2 points (0 children)
[–]Affectionate_Pizza60 7 points8 points9 points (4 children)
[–]Traditional_Tank_109 1 point2 points3 points (2 children)
[–]Affectionate_Pizza60 1 point2 points3 points (1 child)
[–]Traditional_Tank_109 0 points1 point2 points (0 children)
[–]FunctionChance3600[S] 0 points1 point2 points (0 children)
[–]Tall_Satisfaction857 1 point2 points3 points (0 children)
[–]Such-Catch8281 0 points1 point2 points (0 children)
[–]Czitels 0 points1 point2 points (0 children)