t1109专题

力扣T1094拼车、T1109航班订购统计

当前进度: 10/150 题目来源:力扣1094题、力扣1109题 解题思路:B站讲解 这两个题目均为 查分数组问题,具体讲解,请看B站讲解 1094. 拼车 class Solution:def carPooling(self, trips: List[List[int]], capacity: int) -> bool:a = [0]* 1001flag = Truefor lis

计蒜客 T1109 字符替换

题目链接:https://nanti.jisuanke.com/t/T1109 https://nanti.jisuanke.com/t/T1109 //// Created by Leo Lee on 2019/4/5.//#include <iostream>#include <string>using namespace std;int main(){string str;cha