WEEB DOES PYTHON SLIDING WINDOW (BEATS 98.41%)
\n\n\tclass Solution:\n\t\tdef maximumUniqueSubarray(self, nums: List[int]) -> int:\n\t\t\tlow = 0\n\t\t\tvisited = set()\n\t\t\tresult = 0\n\t\t\tcurSum = 0\n\
![image](https://assets.leetcode.com/users/images/d266bcb7-a3cc-4a3a-b022-f7c09dca44b9_1640401176.2695696.png)\n\n\tclass Solution:\n\t\tdef maximumUniqueSubarray(self, nums: List[int]) -> int:\n\t\t\tlow = 0\n\t\t\tvisited = set()\n\t\t\tresult = 0\n\t\t\tcurSum = 0\n\t\t\tfor high in range(len(nums)):\n\t\t\t\twhile nums[high] in visited:\n\t\t\t\t\tvisited.remove(nums[low])\n\t\t\t\t\tcurSum -= nums[low]\n\t\t\t\t\tlow+=1\n\n\t\t\t\tvisited.add(nums[high])\n\t\t\t\tcurSum += nums[high]\n\n\t\t\t\tif curSum > result:\n\t\t\t\t\tresult = curSum\n\n\t\t\treturn result\n\nAlrights, its time to take a break fellow leetcoders\nWatch some anime instead, check out **\u7121\u8077\u8EE2\u751F \uFF5E\u7570\u4E16\u754C\u884C\u3063\u305F\u3089\u672C\u6C17\u3060\u3059\uFF5E (Mushoku Tensei: Jobless Reincarnation)**\n\n# Episodes: 23\n# Genres: Drama, Fantasy, Ecchi\n\nOne of the greatest isekai anime I\'ve watched, give it a go, its pretty good.\n
['Two Pointers', 'Sliding Window', 'Ordered Set', 'Python', 'Python3']