FAANG interviews test your ability to solve unfamiliar problems by identifying underlying structures. Instead of solving thousands of random problems, mastering these patterns helps you tackle ...
// Given a list of logs with IP addresses in the following format. // lines = ["10.0.0.1 - GET 2020-08-24", "10.0.0.1 - GET 2020-08-24", "10.0.0.2 - GET 2020-08-20"] // Return the most frequent IP ...
Given scores of N athletes, find their relative ranks and the people with the top three highest scores, who will be awarded medals: "Gold Medal", "Silver Medal" and "Bronze Medal". Explanation: The ...