AI工具人
提示词工程师

Leetcode 3. Longest Substring Without Repeating Characters

Given a string, find the length of the longest substring without repeating characters.

原题链接:Longest Substring Without Repeating Characters

  此题题意是找出一个不包含相同字母的最长子串,题目给出了两个例子来说明题意,但这两个例子具有误导性,让你误以为字符串中只有小写字母。还好我是心机boy,我把大写字母的情况也给考虑进去了,不过。。。。字符串里竟然有特殊字符,于是贡献了一次wrong answer,这次我把ascii字符表都考虑进去,然后就没问题了。这个故事告诫我们在编程处理问题的时候一定要注意输入数据的范围,面试中可以和面试官去确认数据范围,也能显得你比较严谨。

赞(1) 打赏
未经允许不得转载:XINDOO » Leetcode 3. Longest Substring Without Repeating Characters
描述文字

评论 2

  1. #1

    This is because consumers be interested in different things from your business to
    be able to show they get noticed from your crowd. Keeping in mind your market and budget, we create an effective SMO insurance policy for you.
    Web designers utilize a selection of design software like Flash, Photoshop, HTML and
    DHTML to be able to develop and raise the selling point of
    their clients’ websites.

    Daniela10年前 (2017-05-27)回复
  2. #2

    Let go of one’s nervous about losing a forex account or otherwise not having the right answers.
    We would distance ourselves from anybody that have
    anything negative to say on anything. When value of Canada’s dollar
    was lower (in comparison to the USD), many Canadian businesses profited from exports towards the United
    States.

    Office Cloud Australia10年前 (2017-05-28)回复

觉得文章有用就打赏一下文章作者

非常感谢你的打赏,我们将继续给力更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫

微信扫一扫