11. 以下程式的目的是要找到輸入的字串中所有子字串(子字串需是輸入字串中連續字元組成)
之最大回文(Palindrome,從左往右與從右往左所得到的字元順序完全相同的字串)長度。

空白處應填入什麼?
(A)l >= 0 and r < len(s) and s[l] == s[r]
(B)l > 0 or r < len(s) and s[0] == s[r]
(C)l >r or r < len(s) and s[0] == s[r]
(D)l >=r and r < len(s) and s[0] == s[r]

答案:登入後查看
統計: A(10), B(9), C(6), D(3), E(0) #3447131

詳解 (共 1 筆)

#6740463
1. 題目解析 這道題目要求我們填寫一...
(共 795 字,隱藏中)
前往觀看
1
0