HackerEarth, Recently Asked Backend Assessments in 4 Nov, 2025 | Recursive Land Division | One Block
Question · Posted Apr 2026
Question 1: Recursive Land Division Problem Statement: A country consists of N regions, each containing a specific number of towns. The government has decided to split the country into two separate nations in a way that minimizes the absolute difference between the total number of towns in each new nation. Each region is connected to another region through roads, forming a structure of an undirected connected graph with N-1 edges and no cycles. Your task is to determine the minimum ...
The full answer & interview discussion are available to premium members.
Log in Create a free account