We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0a79699 commit 332e04eCopy full SHA for 332e04e
βsolution/0003.Longest Substring Without Repeating Characters/Solution.py
@@ -0,0 +1,12 @@
1
+class Solution:
2
+ def lengthOfLongestSubstring(self, s: str):
3
+ max = 0
4
+ length = len(s)
5
+ substr = ""
6
+ for i in range(0, length):
7
+ index = substr.find(s[i])
8
+ if index > -1:
9
+ substr = substr[index + 1:]
10
+ substr += s[i]
11
+ max = (max if (max > len(substr)) else len(substr))
12
+ return max
βsolution/README.md
@@ -25,7 +25,8 @@
25
βΒ Β βββ README.md
26
βΒ Β βββ Solution.go
27
βΒ Β βββ Solution.java
28
-βΒ Β βββ Solution.js
+βΒ Β βββ Solution.js
29
+βΒ Β βββ Solution.py
30
βββ 0004.Median of Two Sorted Arrays
31
32
βΒ Β βββ Solution.cpp
0 commit comments