[商管] [成大100]-資結
Assume there are a few characters (no more than 20) in a list. please design an
algorithm to decide whether the given list is central symmetric. For example, both
"abccba" and "xyzyx" are central symmetric, wbile "abbbcba" and "qeetcwteeq" are
not.
Input: xyzyx.
Output: Yes
Input : qeetcwteeq
Output: No
請各位幫我看看這題吧~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 124.218.197.132
推
01/28 22:40, , 1F
01/28 22:40, 1F
推
01/28 22:45, , 2F
01/28 22:45, 2F
推
01/28 23:15, , 3F
01/28 23:15, 3F
→
01/29 00:31, , 4F
01/29 00:31, 4F
→
01/29 00:36, , 5F
01/29 00:36, 5F
→
01/29 00:38, , 6F
01/29 00:38, 6F