Skip to content

Analyse and Refactor Functions #170

Description

@DraftRoman

Link to the coursework

https://github.com/CodeYourFuture/Module-Complexity/tree/main/Sprint-1

Estimated time in hours (PD has max 4 per week total)

6

What is the purpose of this assignment?

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.

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
The link

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status
    👀 In review

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions