Skip to content

London | 26-ITP-May | Edina Kurdi | Sprint 1 | coursework-Data-Groups#1280

Open
edinakurdi wants to merge 8 commits into
CodeYourFuture:mainfrom
edinakurdi:coursework/sprint-1
Open

London | 26-ITP-May | Edina Kurdi | Sprint 1 | coursework-Data-Groups#1280
edinakurdi wants to merge 8 commits into
CodeYourFuture:mainfrom
edinakurdi:coursework/sprint-1

Conversation

@edinakurdi

Copy link
Copy Markdown

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

Sprint 1 tasks:

  1. fix median function
  2. implement:
  • max
  • sum
  • dedupe
  1. refactor includes

@edinakurdi edinakurdi added 🏕 Priority Mandatory This work is expected 📅 Sprint 1 Assigned during Sprint 1 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Data-Groups The name of the module. labels Jul 22, 2026
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Jul 27, 2026

@LonMcGregor LonMcGregor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work, some comments for improvements, but all tests pass

function dedupe() {}
function dedupe(array) {
//create a duplicate,to avoid changing the array
const copiedArray = Array.from(array);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you need a copy of the array here?

Comment thread Sprint-1/implement/max.js
elements = elements.filter((element) => typeof element === "number");

// find maximum
const max = Math.max(...elements);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you implement this without using built-in max?

@LonMcGregor LonMcGregor added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Data-Groups The name of the module. 🏕 Priority Mandatory This work is expected Reviewed Volunteer to add when completing a review with trainee action still to take. 📅 Sprint 1 Assigned during Sprint 1 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants