Python | Easy Solution✅
\n# Code\u2705\n\nclass Solution:\n    def lengthOfLongestSubstring(self, s: str) -> int:\n        output = 0\n        count = {}\n        pos = -1\n        for
\n# Code\u2705\n```\nclass Solution:\n    def lengthOfLongestSubstring(self, s: str) -> int:\n        output = 0\n        count = {}\n        pos = -1\n        for index, letter in enumerate(s):\n            if letter in count and count[letter] > pos:\n                pos = count[letter]\n            count[letter] = index \n            output = max(output,index-pos)\n        return output\n```
['Hash Table', 'Sliding Window', 'Python', 'Python3']