Skip to content

London | 26-ITP-May | Dagim Daniel | Sprint 1 | Exercises - #1337

Open
Dagim-Daniel wants to merge 3 commits into
CodeYourFuture:mainfrom
Dagim-Daniel:Sprint-1/Exercise
Open

London | 26-ITP-May | Dagim Daniel | Sprint 1 | Exercises#1337
Dagim-Daniel wants to merge 3 commits into
CodeYourFuture:mainfrom
Dagim-Daniel:Sprint-1/Exercise

Conversation

@Dagim-Daniel

Copy link
Copy Markdown

…an suggests

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

All tasks under Sprint -1 is completed and i put all together as suggested

@Dagim-Daniel Dagim-Daniel added 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 30, 2026
@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Aug 1, 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. Most of these are working well, but it could be improved further

Comment thread Sprint-1/implement/dedupe.js Outdated
@@ -1 +1,6 @@
function dedupe() {}
function dedupe(value) {
const newDedupe = [...new Set(value)];

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 use of sets, could the return code be simplified even further?

Comment thread Sprint-1/fix/median.js Outdated
const median = list.splice(middleIndex, 1)[0];
// Filter out non-numeric values
// const numbers = list.filter((x) => typeof x === "number");
const numbers = [];

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 test case for this? I get an error when I try it

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

it doesn't work it says list is not iterable but i run the code with out errors i checked it with console log too

Comment thread Sprint-1/fix/median.js Outdated
const right = numbers[middleIndex];
return (left + right) / 2;
}
//console.log(`middleIndex: ${middleIndex}`);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What benefit does this code give by being commented out?

@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 Aug 1, 2026
@Dagim-Daniel Dagim-Daniel added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 4, 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.

Great, the test is passing for me now, and the code looks cleaner. Good work

@LonMcGregor LonMcGregor added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Reviewed Volunteer to add when completing a review with trainee action still to take. labels Aug 5, 2026
@Dagim-Daniel

Copy link
Copy Markdown
Author

Great, the test is passing for me now, and the code looks cleaner. Good work
Thank you, i also push request for sprint 2,for the entire sprint 2 and delete the partition PR like debug,implementation....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed. Module-Data-Groups The name of the module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants