Analyse and Refactor Functions
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- Half a day
- Newbie friendliness
- 52/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- python
- Domain
- performance
Research direction
Start with the Sprint-1 coursework linked in the issue and inspect the provided functions for time or space inefficiency. For each function, document the complexity analysis, refactor it to reduce complexity, and explain the improvement in the pull request; review others' analyses before submitting.
Written by the indexing model from the issue text.
Description
Link to the coursework
https://github.com/CodeYourFuture/Module-Complexity/tree/main/Sprint-1
Learning Objectives
- Identify areas of inefficiency that contribute to higher time or space complexity
- Refactor the code to reduce its complexity.
- Review the analyses of others
Why are we doing this?
It is easier to understand complexity in the abstract than it is to recognise and apply it in our everyday code. In this module you will focus on noticing complexity in code you and your colleagues write.
In Sprint 1, we have provided you a selection of functions that are written in inefficient ways. Your goal is to collaborate on refactoring these functions. It's not enough to improve the code, you must also explain why your refactor is objectively better.
Maximum time in hours
6
How to get help
Bring this to class and study groups. The goal is to collaborate.
How to submit
Fork the repo to your own GitHub account
Make regular small commits with clear messages
When you are ready, open a Pull Request to the CYF repo
Make sure you explain your work clearly in your PR message
- Dominant language
- Python
- Stars
- 0
- Forks
- 60
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from CodeYourFuture/Module-Complexity
-
NotCoursework
Difficulty 1/5 Under an hour Newbie friendliness 75/100
-
🏕 Priority Mandatory 📅 Sprint 2 Core Module-Complexity Submit:None 🦔 Size Tiny
Difficulty 1/5 Under an hour Newbie friendliness 82/100
-
🏕 Priority Mandatory 🐇 Size Small 📅 Sprint 2 Module-Complexity Submit:None
Difficulty 1/5 1-3 hours Newbie friendliness 72/100
-
🏕 Priority Mandatory 🐇 Size Small 📅 Sprint 1 Core Module-Complexity Submit:None
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
-
🏝️ Priority Stretch 📅 Sprint 2 🦑 Size Large Module-Complexity Optional Submit:PR
Difficulty 3/5 Half a day Newbie friendliness 45/100
All issues in CodeYourFuture/Module-Complexity
Similar issues
-
sponsored
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Diaoul/subliminal#1382 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
triage/confirmed
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
agentscope-ai/agentscope#2775 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100