Students share the real questions of the written test on July 26, 2022
输入:s = “111000”
输出:false
解释:
由 1 组成的最长连续子字符串的长度是 3:“111000”
由 0 组成的最长连续子字符串的长度是 3:“111000”
由 1 组成的子字符串不比由 0 组成的子字符串长,故返回 false 。
示例 2:
输入:s = “110100010”
输出:false
解释:
由 1 组成的最长连续子字符串的长度是 2:“110100010”
由 0 组成的最长连续子字符串的长度是 3:“110100010”
由 1 组成的子字符串不比由 0 组成的子字符串长,故返回 false 。
Reference answer:
words = input('请输入:')
m = 1
word_d = {}
for n in range(len(words)-1):
if words[n] == words[n+1]:
m += 1
word_d[words[n]]=m
else:
m=1
if '1' in word_d.keys() and '0' in word_d.keys():
if word_d['1']>word_d['0']:
print('True')
else:
print('False')
elif '1' in word_d.keys():
print('True')
else:
print('False')
★
About us
We are a company specializing in 0 basic software testing training , and the first software testing training company in China that is taught entirely by on-the- job core technical personnel of the enterprise .
The college focuses on software testing enterprise practical project training to make talents more adaptable to enterprise development . _ _ _ _ _ _ _ _ _ _ _ and a large number of practical projects .
The learning process is strictly in accordance with the model of the enterprise training employees , and the students ' real working ability of the enterprise is shaped , such as : communication ability , expression ability , analysis ability , writing ability, etc. File output capability , the entire project process Independently responsible for testing ability , tool use ability , technical project landing ability , etc. , so that students can apply what they have learned and work without worry after employment .
★
Faculty _
Our teachers are test architects and managers from major Internet companies with more than 10 years of testing experience . It can not only lead you to quickly learn software testing , but also lead you to a deeper levelInto a thorough understanding of the Internet .
★
Course Advantages
We specially invited a number of testing technical experts such as JD.com , Ali , TAL , 360 , etc. to review the course . And collect their valuable opinions , and carry out the course most suitable for the actual combat of the enterprise .order . Finally , the most comprehensive , detailed and practical software testing knowledge system is output . _ We have exclusively written software testing practical books , allowing students to learn the theoretical framework while learning the theoretical frameworkYou can also get practical training , more regular classroom tests , and more targeted tutoring and teaching according to the situation of each student , making it easier for everyone to learn . Get your favorite office . _ _ _ _
Teaching form
There are two teaching formats for different students:
1. Offline teaching.
2. Live online lectures.
start time
The 39th session of the College of Editing, Measuring and Editing starts: 8.11
Course duration: 3 months
Enrollment target: should be the previous undergraduate, college graduates
Consulting registration
Hotline: 19909227668
Consulting QQ: 2546558841/3606798528
Consult WeChat: bcbxhome/bcbx_tester
Course Fees
The country's most cost -effective *499 yuan, scan the QR code below for details, there are surprises~
We welcome you to join us!