Search
⌘K

Leetcode 605. Can Place Flowers

Given a binary array representing a flowerbed (0 = empty, 1 = planted) with no adjacent 1s, determine if you can add n new flowers without creating adjacent plants. This is typically solved greedily by scanning the array and planting whenever a 0 has empty neighbors (including edges) until you reach n or exhaust possibilities.

Asked at:

Meta

LinkedIn

LinkedIn


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Late February, 2026

Meta

Senior

phrased as seating in theatre

Mid January, 2026

LinkedIn

LinkedIn

Senior

Question was worded as seating people in a theater.

Early December, 2025

Meta

Mid-level

palindrome

Comments

Your account is free and you can post anonymously if you choose.