Pular para o conteúdo principal

Um documento selecionado com "knapsack"

Ver todas os Marcadores

Bricks in Wheelbarrow

You are transporting bricks on a construction site and want to work as efficiently as possible. The weight of each brick is given by bricks[i]. Given a wheelbarrow that can carry up to (not including) 5000 pounds, return the maximum number of bricks you can place in your wheelbarrow to transport.