Maximum Equal-Cost Packages
Asked at Amazon · Coding Questions · Difficulty: Medium
Form as many packages as possible from items with costs `cost`. Every package must have the **same** total cost and contain at most two items; each item is used in at most one package. Return the maximum number of packages.
Loading the problem…