Coding Challenge · INTERMEDIATE
A warehouse robot must stack pallets in a single row to maximize the total value, but some pallets are fragile and cannot be placed directly after another fragile pallet. Each pallet has a value and a flag indicating if it is fragile. The objective is to select a subset of pallets in order, maximizing the sum of their …