605. Can Place Flowers
Problem Link
class Solution:
def canPlaceFlowers(self, flowerbed: List[int], n: int) -> bool:
cnt = 0
pre = 0
for i in range(len(flowerbed)):
if pre == 0 and flowerbed[i] == 0:
if i == len(flowe...
superbcoder.hashnode.dev1 min read