This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
We've recently made an accessibility improvement to the community and therefore posts without any content are no longer allowed. Please use the spoiler feature or add a short message in the message body in order to submit your weekly challenge.
I padded the fields in the Coupon Code to avoid ambiguity and possible duplicate codes. Also, I tried to be fair to the customers and look at their total spend to determine coupon codes. In the solution it appears that each contract is evaluated separately. Since the Coupon Codes included the order number I carried the remainders from previous contracts forward to the next for each customer.