What is the runtime complexity for the greedy recursive algorithm and why
theta(n). as the runtime is dominated by incrementing m. It can never go > n and then recursions don’t restart m.
What is the runtime complexity for the greedy iterative algorithm and why is it better than recursive
theta(n). simpler to understand. don’t need to save each stack frame to memory.
What is the generalised greedy strategy?