Find the Equilibrium point of an Array - O(n)

Find the Equilibrium point of an Array - O(n)

frickProgramming

54 года назад

81 Просмотров

Equilibrium position in an array is a position at which the sum of elements before it is equal to the sum of elements after it. Given an array arr, your task is to determine at which position equilibrium first occurs in the array. If there is no equilibrium position, the answer should be -1.

#frickProgramming #equilibriumPoint #codesignal

Тэги:

#frick_programming #java_programming #learn_programming #code_challenge #programming_for_fun
Ссылки и html тэги не поддерживаются


Комментарии: