6 lines in Python. easy
py\nclass Solution:\n    def closestCost(self, baseCosts: List[int], toppingCosts: List[int], target: int) -> int:\n        tCosts = toppingCosts + toppingCosts
```py\nclass Solution:\n    def closestCost(self, baseCosts: List[int], toppingCosts: List[int], target: int) -> int:\n        tCosts = toppingCosts + toppingCosts\n        allCosts = set(baseCosts)\n        for t in tCosts:\n            allCosts |= set(t + x for x in allCosts)\n        return min(allCosts, key=lambda x: (abs(x-target), x>target))\n```
[]