消息推送根本就没有这么简单的每日一题 Leetcode —— 21242小时前根本就没有这么简单的每日一题 Leetcode —— 2124🌐 链接: https://linux.do/t/topic/3220639🏷️ 分组: LinuxDo论坛🕒 时间: 2026-11-22 13:22:08 LINUX DO 根本就没有这么简单的每日一题 Leetcode —— 2124 class Solution { public: bool checkString(string s) { bool b=0; for(int i = 0; i<=s.size(); i++){ if(s[i]=='b') b=1; if(s[i]=='a' && b) return 0; } return 1; } }; 纯粹好奇 3ms是到底是怎么样的代码 2小时前