#P1388. 2023.05-B卷-HWOD机试 -最长公共后缀
2023.05-B卷-HWOD机试 -最长公共后缀
![](https://s3.bmp.ovh/imgs/2024/09/03/9ec1757951030a02.jpg)
编写一个函数来查找字符串数组中的最长公共后缀:
如果不存在公共后缀,返回固定字符串: @Zero。
补充说明: 1.字符串长度范围:[2,1000] 2.字符串中字符取值范围为[1,126]
无
无
输入
["abc","bbc","c"]
输出
c
说明
返回公共后缀:c
输入
["aaa","bb","cc"]
输出
@Zero
说明
不存在公共后缀,返回固定结果:@Zero
扫码备注加群即可,期待您的到来~
By signing up a CodeFun2000 universal account, you can submit code and join discussions in all online judging services provided by us.