Company: Amazon_Ml_challenge
Difficulty: medium
WI-FI Router Installation Problem Description In a new smart city development, your task is to install Wi-Fi Routers with a fixed coverage radius to provide internet access to all residential buildings. Every building can access the internet as long as it is within the router's coverage radius. Given the positions of buildings A and routers B on a street, return the minimum coverage radius needed for the routers so that all buildings can be covered. Notice that all the routers follow the same coverage standard, and the coverage radius will be the same. Input Format: First Argument is an Integer Array A, denoting the positions of buildings on the street. Second Argument is an Integer Array B, denoting the routers on the street. Output Format: Return an integer denoting the minimum coverage radius needed for the routers so that all buildings can be covered. Examples Example 1: Input: A = [5, 5, 7], B = [5] Output: 2 Explanation: The only router was placed at position 5, and if we use a r