2016(1-3月) 码农类 硕士 全职@Yelp - 网上海投 - 技术电面 |Pass在职跳槽
Given 2 lists of business where each business has a score and each list has a priority. Design and implement to return n business from both lists that fulfill below requirements:
- No more than 2 business from lower priority list in top 5
- No more than 3 business from lower priority list in top 7
- No more than 4 business from lower priority list in top 10
Clarification question from me: what if N > 10? Apply the same set of rules for every 10 business.