Latest HackerRank OA Coding Questions & Solutions | Server Faults & Modified Knapsack

Question · Posted Mar 2026

Question 1: Faulty Server Replacement Problem Statement: Implement a prototype service to automate the detection and replacement of faulty servers to improve the availability of an application. There are n servers with IDs s1, s2, ..., sn, and an array of strings, logs, of size m. The log format is "<server_id> <success/error>", representing the ID of the server and the status of the processed request. If a particular server ID logs an error for three consecutive requests, it is considered ...

The full answer & interview discussion are available to premium members.

Log in Create a free account