BNY | OA | BNY Mellon, Recently Asked Online Assessments in 14 March, 2026 | Power of Array
Question · Posted Apr 2026
Question 1: Power of Array Problem Statement: James is working on a project to calculate the strength of an array which is defined as the sum of absolute differences between specific pairs of elements in the array. For a given array, the strength is calculated as: Absolute difference between the first and last element Absolute difference between the second and second-last element and so on... For example, in the array {1, 3, 2}, the strength is: |1-2| + |3-3| + ...
The full answer & interview discussion are available to premium members.
Log in Create a free account