From 45feb14bf367828d18b41caa57a253c0e944ebfe Mon Sep 17 00:00:00 2001 From: absognety Date: Sat, 16 Nov 2024 09:57:35 +0530 Subject: [PATCH] Can we plant flowers with given locations ~ Leetcode 75 --- LeetCode/ProgrammingInGo/canplaceflowers/canplaceflowers.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/LeetCode/ProgrammingInGo/canplaceflowers/canplaceflowers.go b/LeetCode/ProgrammingInGo/canplaceflowers/canplaceflowers.go index 79d0dad..90f1f0e 100644 --- a/LeetCode/ProgrammingInGo/canplaceflowers/canplaceflowers.go +++ b/LeetCode/ProgrammingInGo/canplaceflowers/canplaceflowers.go @@ -1,5 +1,7 @@ /* +Leetcode 75 Medium + You have a long flowerbed in which some of the plots are planted, and some are not. However, flowers cannot be planted in adjacent plots. Given an integer array flowerbed containing 0's and 1's, where 0 means empty and 1 means not empty, and an integer n, return true if n new flowers can be planted in the flowerbed without violating the no-adjacent-flowers rule and false otherwise.