Array
3606. Coupon Code Validator
Given coupons: code[i], line[i] (category), active[i]. A coupon is valid if it's active, code is non-empty and consists only of [A-Za-z0-9_], and line is one of {electronics, grocery, pharmacy,…
Loading…
Given coupons: code[i], line[i] (category), active[i]. A coupon is valid if it's active, code is non-empty and consists only of [A-Za-z0-9_], and line is one of {electronics, grocery, pharmacy,…
Loading…