sretcarahCgnitaepeRtuohtiWgnirtsbuStsegnoL.3

来源:互联网 发布:linux下卸载oracle11g 编辑:程序博客网 时间:2024/05/01 13:35

题目:https://leetcode.com/problems/longest-substring-without-repeating-characters/

知识点:

数组/字符串在循环中的越界问题。

C++ string最后一位的下一位为空。

注意循环的初始值和最后的值,以及中间元素是否到位。


0 0