[leetcode]第3题

class Solution {
public:
    int lengthOfLongestSubstring(string s) {
        vectorv(256,-1);
        int len = s.size();
        int ans = 0;
        int start = -1;
        for(int i=0; i

 

你可能感兴趣的:(C++,算法,leetcode)