Commit 52524a3c by 326030434

code review

parent 944e9f5b
Detailed Comments:
— 代码的实现思路上没有任何问题!
- 以下部分可以优化:
1.if string[i][0].lower() in vowel这句性能比较低:
vowl为list,遍历时间复杂度为O(n),可以用set
大多数单词其实不用使用lower进行处理,可以将大写字母加入vowel
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment