Given a string, find the length of the longest substring without repeating characters. 来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/longest-substring-without-repeating-characters著作权归领扣网络所有.商业转载请联系官方授权,非商业转载请注明出处. 这道题目一拿到手,想都不用想,直接暴力遍历.然而结果虽然可行,…