← Snapdeal questions

Calculate proportional cost for a carpooling system

Filed under Snapdeal

The question

Given a path of length x and passenger pickup/drop points, calculate the payable cost for each passenger proportionally based on the number of co-passengers sharing the ride over specific segments.

No write-up yet. Related questions below have one.

Related Snapdeal questions

Collected from public candidate posts and coding forums. Updated Nov 2026.