Question d’entretien chez Squarepoint Capital

Two leet code style questions involving dynamic programming.