摘要:
class Solution{ public: string str; int i=0; int cnt[256]={0}; //Insert one char from stringstream void insert(char c){ str+=c; cnt[c]++; } //return t 阅读全文
posted @ 2023-04-27 15:00
穿过雾的阴霾
阅读(18)
评论(0)
推荐(0)
摘要:
class Solution { public: int longestSubstringWithoutDuplication(string s) { int len=0,n=s.size(),cnt[30]; memset(cnt,0,sizeof cnt); for (int i = 0,j = 阅读全文
posted @ 2023-04-27 14:06
穿过雾的阴霾
阅读(14)
评论(0)
推荐(0)

浙公网安备 33010602011771号