End of Year Sale: Use Coupon Code END2025 to Get Extra 25% Off.
cur to 1, groups to 1, and n to the length of nums.cur to 1.cur.groups to be the maximum of groups and cur.n is greater than or equal to k * groups.true if the condition is met, otherwise return false.