牛客46051648号
牛客46051648号
全部文章
分类
归档
标签
去牛客网
登录
/
注册
牛客46051648号的博客
全部文章
(共1篇)
题解 | #包含不超过两种字符的最长子串#
#include <bits/stdc++.h> using namespace std; int lengthOfLongestSubstringTwoDistinct(std :: string s){ int n = s.length(); if(n < 3...
2024-03-24
0
228