Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
basic-homework-mervin
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mervin
basic-homework-mervin
Commits
04457953
Commit
04457953
authored
Jan 25, 2019
by
lyn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code review
parent
8cb94955
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
code_review 20190125.txt
+7
-0
No files found.
code_review 20190125.txt
0 → 100644
View file @
04457953
Detailed Comments:
— 唯一摩尔斯密码词:代码逻辑完全正确
- for i in words:的循环内部,可以直接使用i,没有必要再建立一个变量inner_words
- 可以直接遍历inner_words,使用正则提取出words_letter再遍历words_letter做了重复的工作
- if words_morse not in morse_list的判断,在morse_list较大时会非常慢,时间复杂度为O(n),可以使用set进行优化
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment