#greedy

▲ 01 solution