HSBC FTE Campus 2026 | Array Optimization & Resultant String
HSBC · Question · Posted Apr 2026
01. Alex in TechVille Problem Statement In the bustling city of Techville, Alex is working on a special project that involves optimizing a list of data values. They have an array A of n integers, where n is always an odd number. Alex needs to perform a series of operations to reduce the array down to a single value. In each operation, Alex can remove two adjacent elements from the array and then combine the remaining parts. For example, given ...
The full answer & interview discussion are available to premium members.
Log in Create a free account