JPMorgan Chase, 2026 | Server Load Capacity
Question · Posted Apr 2026
Question 1: Server Load Capacity Problem Statement: You are given n servers, where each server has a request-handling capacity listed in the array servers. Each capacity is guaranteed to be a power of 2 (such as 1, 2, 4, 8, ...). You are also given an integer expected_load. Your task is to determine the minimum number of servers whose capacities add up to exactly expected_load. Notes: Each server can be selected at most once. The total capacity of selected servers ...
The full answer & interview discussion are available to premium members.
Log in Create a free account