Skip to content

London | 26-ITP-May | Dipa Sarker | Sprint 1| Sprint-1-exercises#1244

Open
Dipa-Sarker wants to merge 7 commits into
CodeYourFuture:mainfrom
Dipa-Sarker:Sprint-1-exercises
Open

London | 26-ITP-May | Dipa Sarker | Sprint 1| Sprint-1-exercises#1244
Dipa-Sarker wants to merge 7 commits into
CodeYourFuture:mainfrom
Dipa-Sarker:Sprint-1-exercises

Conversation

@Dipa-Sarker

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

Completed the Sprint 1 tasks across the Fix, Implement and Refactor sections.

  1. Fix
  • Ran and analyzed failing tests.
  • Updated implementations to ensure all provided tests pass.
  • Verified fixes against the existing test suite.
  1. Implement

Implemented functions according to the provided requirements:

  • max
  • sum
  • dedupe

Added/verified functionality against the corresponding test cases and checked behavior with different inputs.

  1. Refactor
  • Refactored the provided implementations as requested.
  • Ensured existing functionality was preserved.
  • Re-ran tests to confirm no regressions were introduced.

Testing

  • Ran the Fix test suite: npm test -- fix
  • Ran the Implement test suite: npm test -- implement
  • Re-ran all relevant tests after refactoring.
  • Confirmed all tests are passing.
  1. Also completed input.txt solution in stretch.

@Dipa-Sarker Dipa-Sarker added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jul 13, 2026
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Jul 20, 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 start, but some areas where you could improve

Comment thread Sprint-1/fix/median.js

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Did you run the tests for this file? When I run it, I get a failure, do you also get this?

@@ -1 +1,10 @@
function dedupe() {}
function dedupe(array) {
const result = [];

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Are all the lines of code in this function necessary for it to work? Could it be simplified?

@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 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants