{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": true }, "outputs": [], "source": [ "# ---------------------------------------------------------------\n", "# python best courses https://courses.tanpham.org/\n", "# ---------------------------------------------------------------\n", "# Challenge\n", "# \n", "# Given a string, find the length of the longest substring\n", "# without repeating characters.\n", "\n", "# Examples:\n", "\n", "# Given \"abcabcbb\", the answer is \"abc\", which the length is 3.\n", "# Given \"bbbbb\", the answer is \"b\", with the length of 1.\n", "# Given \"pwwkew\", the answer is \"wke\", with the length of 3.\n", "# ---------------------------------------------------------------" ] } ], "metadata": { "kernelspec": { "display_name": "Python 2", "language": "python", "name": "python2" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 2 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython2", "version": "2.7.13" } }, "nbformat": 4, "nbformat_minor": 2 }