<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Leetcode on Niweea’s Blog</title><link>https://niweea.github.io/categories/leetcode/</link><description>Recent content in Leetcode on Niweea’s Blog</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 24 Feb 2021 18:10:06 +0800</lastBuildDate><atom:link href="https://niweea.github.io/categories/leetcode/index.xml" rel="self" type="application/rss+xml"/><item><title>爱生气的书店老板</title><link>https://niweea.github.io/posts/leetcode/grumpy_bookstore_owner/</link><pubDate>Wed, 24 Feb 2021 18:10:06 +0800</pubDate><guid>https://niweea.github.io/posts/leetcode/grumpy_bookstore_owner/</guid><description>&lt;p&gt;今天，书店老板有一家店打算试营业 customers.length 分钟。每分钟都有一些顾客（customers[i]）会进入书店，所有这些顾客都会在那一分钟结束后离开。&lt;/p&gt;
&lt;p&gt;在某些时候，书店老板会生气。 如果书店老板在第 i 分钟生气，那么 grumpy[i] = 1，否则 grumpy[i] = 0。 当书店老板生气时，那一分钟的顾客就会不满意，不生气则他们是满意的。&lt;/p&gt;</description></item></channel></rss>