Skip to content

Comment on Divide Your Rent Fairlyparent

Comments

You can reach a consensus without an algorithm, but will you? If different people value the rooms differently, you might not be able to assign valuations that everyone agrees are fair. With this algorithm, you are guaranteed to assign prices and rooms such that no one would prefer to take another person's room and price instead of their current room and price.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.