E-commerce checkout systems generate targeted "bundle" discounts. To trigger a "$50 off your cart" coupon, the system must calculate if combinations of items from a promotional catalog sum exactly to the target threshold. Customers can buy the same promotional item multiple times.
Given an array of distinct integers `prices` and a target integer `target`, return a list of all unique combinations of prices where the chosen numbers sum to `target`. You may choose the same price an unlimited number of times.
βΆ Run Code to test against examples Β· Submit to judge all 5 test cases