摘要: 输入一些单词,找出所有满足如下条件的单词: 该单词不能通过字母重排,得到输入文本中的另一个单词。 在判断是否满足条件时,字母不区分大小写,但在输出时应保留输入中的大小写,按字典序进行排序。 (所有大写字母在所有小写字母的前面) 样例输入: ladder came tape soon leader a 阅读全文
posted @ 2020-12-14 22:36 Vincent-yuan 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 输入一个文本,找出所有不同的单词(连续的字母序列),按字典序从小到大输出。 单词不区分大小写。 样例输入: Adventures in Disneyland Two blondes were going to Disneyland when they came to a fork in the ro 阅读全文
posted @ 2020-12-14 21:37 Vincent-yuan 阅读(135) 评论(0) 推荐(0) 编辑