Example why sorting and greedy is not enough
I see some examples like tasks = {3, 4, 7, 8, 10} sessionTime = 12, But sorting and greedy can give correct answer for that one. I manage to find on that greedy
I see some examples like `tasks` = {3, 4, 7, 8, 10} `sessionTime` = 12, But sorting and greedy can give correct answer for that one. I manage to find on that greedy is not working right.\n\nthinking of case like `tasks` = {16, 9, 8, 7,6,6,3,2,2,1} `sessionTime` = 20,after first 6 tasks, u should have three session with 16/20, 17/20, 19/20 respectively, Now u have task with length of 3, if u use greedy u will choose to place it in the first one and ends up with 19/20, 17/20, 19/20. But obviously u can do better by put it in the second one.\n\nhope this is helpful.
[]