Search⌘ K
AI Features

Can Place Flowers

Can Place Flowers gives a flowerbed array and a number of new flowers; determine whether all can be planted while keeping every pair of flowers in nonadjacent plots.

Statement

Given an integer list flowerbed, each element is either ...