結果 : greedy algorithm steps