Brain teaser: splitting revenue fairly.
While this brain teaser can be applied to more than programming, I think it’s a very nice one to sharpen our problem-solving solution required to do a good programming.
There were 2 people, A and B. They joined together to have a meal. Person A brought 3 loafs of bread. Person B brought 5 loafs of [...]