Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Minimum Number of Days to Make m Bouquets

MediumLeetCode 1482 ↗

The problem, in one line. Each flower in a row blooms on a given day. A bouquet needs k flowers that sit next to each other and have bloomed. Return the earliest day you can make m bouquets, or -1. LeetCode 1482.

The tell. “The minimum day such that” something is possible, and waiting longer never hurts, because flowers that bloomed stay bloomed. Too early fails, late enough works.

Included with a plan

This solution is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.