UberSoftware Engineer · OnsiteCodemia practiceDesign an Extensible Fare Calculator With Pluggable Pricing Rules
Design the classes for a fare calculator where each city combines rules such as base fare, per-kilometer, per-minute, surge, minimum fare, and tolls, produces an itemized breakdown, and can add new rules without changing existing code.
Medium
Software Engineering Fundamentals