Design a Leaderboard: Rust Interview with a Google Engineer

interviewing.io
interviewing.io
830 بار بازدید - 5 ماه پیش - This is a mock interview
This is a mock interview with a Google engineer in Rust. The question is "Design a Leaderboard" where you must design a leaderboard class, which has 3 functions: 1. addScore(playerId, score): Update the leaderboard by adding score to the given player's score. If there is no player with such id in the leaderboard, add him to the leaderboard with the given score. 2. top(K): Return the score sum of the top K players. 3. reset(playerId): Reset the score of the player with the given id to 0 (in other words erase it from the leaderboard). It is guaranteed that the player was added to the leaderboard before calling this function. 📖 Check out feedback from the Google interviewer and the full transcript at interviewing.io/mocks/google-rust-design-a-leaderb… 👉 Sign up to book a mock interview just like this one or to watch more interviews in our showcase: www.interviewing.io/ 📘 Or view other python interviews: interviewing.io/mocks?language=rust ❗ Disclaimer: All interviews are shared with explicit permission from the interviewer and the interviewee, and all interviews are anonymous. interviewing.io has the sole right to distribute this content. TIMESTAMPS 00:00 Introductions (gauging level, experience and current prep stage) 05:05 Question starts (Design a leaderboard) 08:16 Coding begins 23:44 Discussing optimizing the solution 37:04 Second question starts (Minimum Moves to Reach Target Score) 51:40 Coding begins 57:22 Interviewer Feedb
5 ماه پیش در تاریخ 1403/02/14 منتشر شده است.
830 بـار بازدید شده
... بیشتر