乙醚的博客

有趣是给别人的,快乐是给自己的。
  • 首页
  • 所有文章
  • 分类查看

    { 字符串 }

  • [LeetCode] 3. Longest Substring Without Repeating Characters

    2018-07-03 |
    • { Python }
    • { 解题报告 }
    • { LeetCode }
    • { 贪心 }
    • { 字符串 }
    /
    • { 解题报告 }

    题目

    LeetCode链接

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

    Examples:

    Given "abcabcbb", the answer is "abc", which the length is 3.

    Given "bbbbb", the answer is "b", with the length of 1.

    Given "pwwkew", the answer is "wke", with the length of 3. Note that the answer must be a substring, "pwke" is a subsequenceand not a substring.

    Read On »
© 2025 - 乙醚
Powered by Hexo , Theme - Icalm