lasts selected greedy problems