Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
2
2019.1_homework_liuwen
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
马斯洛
2019.1_homework_liuwen
Commits
7bf79f67
Commit
7bf79f67
authored
Jan 07, 2019
by
Lyn.Xiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upload the review
parent
109ca587
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
zuoye_review.txt
+9
-0
No files found.
zuoye_review.txt
0 → 100644
View file @
7bf79f67
Summary: 感谢抽时间来完成作业~ 总体来讲完成得很好!实现方式从逻辑上来讲没有问题
Detailed Comments:
— 代码采取的思路是:新建一个listone数组,如果满足 if i in J,则在数组中增加一位,最后判断listone的长度,这里新建数组使用了额外的空间复杂度,可以直接使用int值n,进行统计时,使用 n += 1即可
- 作为函数,最后需要返回值,代码底部应该返回 return len(listone)
\ 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