Skip to content

Brussels | ITP-2026-1 | Nik | Sprint 1 | Week 7#120

Open
bezdzenariy wants to merge 3 commits intoHackYourFutureBelgium:mainfrom
bezdzenariy:coursework/sprint-1
Open

Brussels | ITP-2026-1 | Nik | Sprint 1 | Week 7#120
bezdzenariy wants to merge 3 commits intoHackYourFutureBelgium:mainfrom
bezdzenariy:coursework/sprint-1

Conversation

@bezdzenariy
Copy link
Copy Markdown

@bezdzenariy bezdzenariy commented Apr 13, 2026

Learners, PR Template

Self checklist

  • titled PR
  • changes meet the requirements of the task
  • tested changes
  • changes follow the style guide

Changelist

Sprint-1 (Week 7): Arrays & Functions

Fix:

  • median.js — Fixed sorting and median calculation with input validation

Implement:

  • max.js — Find maximum value in array (filters non-numbers)
  • sum.js — Sum array elements (ignores non-numbers)
  • dedupe.js — Remove duplicates using Set

Refactor:

  • includes.js — Refactored from for loop to for...of

Stretch:

  • aoc-2018-day1/solution.js — Advent of Code 2018 Day 1 solution

Tests:

  • All test suites passing
  • Edge cases covered: empty arrays, non-numeric values, negative numbers

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant