注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
一道关于team vote的题目,要求实现两个方法。
Given a list of ballots consisting of votes and all the candidates grouped together as map where each ballot shows the candidate getting those many votes in that specific position - Find candidate with "popular vote" - this is the candidate having most number of votes from the electorate's as their first choice Find &ate B got 3 votes as electorate's first choice, candidate C got 3 votes as electorate's 2nd choice and candidate A got 3 votes as electorate's third choice. And so on.
面的是mid-level backend,面试整体体验不错,但题目难度超出个人水平了。只完成了第一题,简单讨论了第二题。结果fail。 |