Online coding judge
- Registered users
- Contest has a start time and end time (next Sunday 10 AM to 5 PM PST)
- Upon start, users get access to 10 problems
- Users submit source code, in any order
- System validates the code, either accept it or reject it
- Ranking or a leaderboard
这道 Amazon VO 面试题描述的是一个在线编程评测与排行榜系统:用户在比赛开始后获取题目,按任意顺序提交代码,系统对每次提交进行判题,并基于通过情况生成排名或 leaderboard。解题重点通常在于设计清晰的状态模型与数据结构,例如记录用户、题目、提交结果、时间戳以及分数 / 排名规则;如果需要实时排行榜,还要考虑如何高效更新与查询名次。
正文完