Question d’entretien chez Lowe's Home Improvement

dynamic Programming with segment tree