This commit is contained in:
2022-11-30 18:20:36 +08:00
parent b13cfa00bb
commit 72555b19e0
132 changed files with 332 additions and 334 deletions

View File

@@ -1,6 +1,6 @@
#include "s0076_minimum_window_substring.hpp"
bool Solution::check() {
bool S0076::check() {
for (const auto &p : ori) {
if (cnt[p.first] < p.second) {
return false;
@@ -11,7 +11,7 @@ bool Solution::check() {
// 不包含 t 中所有字符r 右移
// 包含 t 中所有字符l 右移
string Solution::minWindow(string s, string t) {
string S0076::minWindow(string s, string t) {
for (const auto &c : t) {
++ori[c];
}