Hi,
Been revising on leetcode for a while, has been really helpful. I've definitely seen an improvement in my ability to solve questions!
I'm having some trouble with the questions under the greedy tag however. The easy ones were fairly trivial but the medium ones all seem to have some sort of 'trick' to them that is completely different question by question and I want to be able to solve them myself instead of using rote memorization.
I can see some of the questions tend themselves to different ways of processing the answer, for example True/False ones usually don't require computation/simulation of answers just usually there is something about reasoning of the number of values.
Does anyone have any advice on a pattern or questions to ask myself when I solve these?
Thanks in advance :)