Skip to content

Commit

Permalink
Can we plant flowers with given locations ~ Leetcode 75
Browse files Browse the repository at this point in the history
  • Loading branch information
absognety committed Nov 16, 2024
1 parent 92d7ef4 commit 45feb14
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions LeetCode/ProgrammingInGo/canplaceflowers/canplaceflowers.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit 45feb14

Please sign in to comment.