-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path10.py
More file actions
29 lines (26 loc) · 752 Bytes
/
10.py
File metadata and controls
29 lines (26 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# strs = ["dog","racecar","car"]
# text = min(strs,key=len)
# res=[]
# stk = []
# for i in range(len(text)):
# if text[i] in strs[0] and text[i] in strs[1] and text[i] in strs[2]:
# if i == len(text)-1:
# print('0')
# stk.append(text[i])
# if len(stk)>len(res):
# res.append(stk)
# stk = []
# elif text[i+1] in strs[0] and text[i+1] in strs[1] and text[i+1] in strs[2]:
# print('1')
# print(len(stk))
# stk.append(text[i])
# else:
# stk.append(text[i])
# if len(stk)>len(res):
# res.append(stk)
# stk = []
# print(res)
res =''
res +='sdf'
res +='sdf'
print(res)