Given counts of red, green, and blue balls, pack them all into minimum boxes where each box holds 1 to 3 balls of one color or three distinct colors.
Medium6GreedyMathDynamic programmingImplementationInterviewNo attempts yetTime limit2sMemory limit512 MB