diff --git a/src/main/java/com/cool/ling_cha_mount/sliding_windows/Num1052.java b/src/main/java/com/cool/ling_cha_mount/sliding_windows/Num1052.java new file mode 100644 index 0000000..695dd6f --- /dev/null +++ b/src/main/java/com/cool/ling_cha_mount/sliding_windows/Num1052.java @@ -0,0 +1,43 @@ +package com.cool.ling_cha_mount.sliding_windows; + +/** + * Created with IntelliJ IDEA. + * + * @Author: Cool + * @Date: 2024/10/08/14:39 + * @Description: 1052. 爱生气的书店老板 + * Hard 2 + * Level 4 + * Score 1418 + */ +public class Num1052 { + + public int maxSatisfied(int[] customers, int[] grumpy, int minutes) { + int sum=0; + int non=0; + int all=0; + for(int i=0;i