-
Couldn't load subscription status.
- Fork 0
Feedback #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: feedback
Are you sure you want to change the base?
Feedback #1
Conversation
🤖 AI Feedback🕒 Posted on 2025-10-26T14:08:12.649Z What's Working Well:
Areas for Improvement:
Summary:The solution demonstrates strong understanding of object-oriented design patterns and requirements specification. The most important takeaway: Ensure mathematical algorithms in analytics methods precisely match test expectations, especially for statistical calculations. Previous Feedback🕒 Posted on 2025-10-19T11:26:09.097Z Overall FeedbackThe WarehouseAnalyzer implementation demonstrates solid advanced feature coverage and handles the business logic requirements effectively. All methods except one are correctly implemented to meet the test expectations. The primary issue lies in the outlier detection algorithm. What's Working Well:
Areas for Improvement:1. Outlier Detection Requires Threshold AdjustmentIssue: double threshold = standardDeviations * std;
double diff = Math.abs(p.price().doubleValue() - mean);
if (diff > threshold) outliers.add(p);Explanation: The current implementation yields only one outlier (500) because the standard deviation is inflated by the extreme value itself. For robust outlier detection in this scenario, either:
SummaryAddress the outlier calculation logic to ensure both extreme values are identified. The implementation otherwise exhibits strong domain modeling and meets advanced test requirements. Previous Feedback🕒 Posted on 2025-10-19T11:24:51.658Z Overall FeedbackThe WarehouseAnalyzer implementation is well-structured and correctly addresses advanced requirements from EdgeCaseTest. The algorithms are logically consistent and handle edge cases appropriately. Great work on implementing complex business logic! Key Strengths
Minor Improvements
Final NotesMost Important Takeaway: Always use BigDecimal for price calculations to prevent floating-point errors, especially in financial operations and precision-dependent calculations like weighted averages or outlier detection. This ensures test assertions pass reliably. |
👋! GitHub Classroom created this pull request as a place for your teacher to leave feedback on your work. It will update automatically. Don’t close or merge this pull request, unless you’re instructed to do so by your teacher.
In this pull request, your teacher can leave comments and feedback on your code. Click the Subscribe button to be notified if that happens.
Click the Files changed or Commits tab to see all of the changes pushed to the default branch since the assignment started. Your teacher can see this too.
Notes for teachers
Use this PR to leave feedback. Here are some tips:
For more information about this pull request, read “Leaving assignment feedback in GitHub”.
Subscribed: @BenjaminEkJava