{"version":"1.0","provider_name":"Hatena Blog","height":"190","description":"https://leetcode.com/problems/can-place-flowers/ class Solution { public boolean canPlaceFlowers(int[] flowerbed, int n) { //max: 0 adjacent 1 //dont create like this: [1, 0, 0, 1, 0, 0, 1] and do like this [1,0,1,0,0,0,1], then we can put one more flower in the flower bed if (flowerbed.length == 1)\u2026","width":"100%","author_url":"https://blog.hatena.ne.jp/cindychen0204/","categories":[],"url":"https://cindychen0204.hatenablog.com/entry/2022/10/07/LeetCode_605._Can_Place_Flowers","published":"2022-10-07 17:20:50","title":"LeetCode 605. Can Place Flowers","blog_url":"https://cindychen0204.hatenablog.com/","blog_title":"Cindy's Blog","author_name":"cindychen0204","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcindychen0204.hatenablog.com%2Fentry%2F2022%2F10%2F07%2FLeetCode_605._Can_Place_Flowers\" title=\"LeetCode 605. Can Place Flowers - Cindy&#39;s Blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","image_url":null,"type":"rich"}