Introduction - If you have any usage issues, please Google them yourself
Stable marriage matching: there are N M N M, everyone according to his degree of love for the opposite sex rankings. Now you need to write an algorithm to arrange a male N, N-woman marriage, marriage requires two people should be stable.