原文:最长子串(Leetcode-3 Longest Substring Without Repeating Characters)

Question: Given a string, find the length of thelongest substringwithout repeating characters. Examples: Given abcabcbb , the answer is abc , which the length is . Given bbbbb , the answer is b , with ...

2017-04-12 20:29 0 1495 推荐指数:

查看详情

LeetCode——3. Longest Substring Without Repeating Characters

一.题目链接:https://leetcode.com/problems/longest-substring-without-repeating-characters 二.题目大意:   给定一个字符串,返回它最长的无重复的子串的长度。 三.题解   该题目,我用了三种方法: 1.思路 ...

Mon Nov 27 20:59:00 CST 2017 0 1996
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM