Showing 1 question
You're given a flowerbed represented by an array of 0s and 1s, where 0 means empty and 1 means planted. Determine if you can plant a given number of new flowers without violating the rule that adjacent plots cannot be planted.
#1. Can Place Flowers
Page 1 of 1 · 1 total