-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
bugSomething isn't workingSomething isn't workingdata-processingData processing issuesData processing issuesjavaJava code issuesJava code issuestypoSpelling or grammar errorSpelling or grammar erroruser-storyUser story format issueUser story format issue
Description
As a developer
I want correct median calculation with proper spelling
So that statistical analysis is accurate
Current Behavior
- Typo:
medain()instead ofmedian() - Wrong calculation for even-length lists
Location: src/java/DataProcessor.java line 40
Expected Behavior
For even-length lists, return average of two middle values.
Example
[1, 2, 3, 4] should return 2.5, not 3
Acceptance Criteria
- Rename to
median() - Fix even-length calculation
- Add unit tests for both odd and even lengths
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdata-processingData processing issuesData processing issuesjavaJava code issuesJava code issuestypoSpelling or grammar errorSpelling or grammar erroruser-storyUser story format issueUser story format issue