Skip to content

Conversation

ahmedabougabal
Copy link
Owner

…s including finding the median for both odd/even lenght lists finds median manually instead of mainly depending on statistics library when it finds an odd-length arrays it counts the average of both numbers instead of returning the max of both

  • Adds test cases for even/odd length arrays
  • Implements manual median calculation
  • Handles edge cases for both array types
  • Removes dependency on statistics library
  • Returns max of middle values for even-length arrays

…s including finding the median for both odd/even lenght lists finds median manually instead of mainly depending on statistics library when it finds an odd-length arrays it counts the average of both numbers instead of returning the max of both

- Adds test cases for even/odd length arrays
- Implements manual median calculation
- Handles edge cases for both array types
- Removes dependency on statistics library
- Returns max of middle values for even-length arrays
@ahmedabougabal ahmedabougabal merged commit 6827dec into main Jan 22, 2025
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