Skip to content

Equilibrium index of an array is an index such that Sum of elements at lower indexes = Sum of elements at higher indexes.

Notifications You must be signed in to change notification settings

AquisBlue/Java-progaram-to-find-the-equilibrium-index-of-an-array-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Java-progaram-to-find-the-equilibrium-index-of-an-array-

Equilibrium index of an array is an index such that Sum of elements at lower indexes = Sum of elements at higher indexes. For example, consider the array a[] = {-7, 1, 5, 2, -4, 3, 0}. Here, a[0] + a[1] + a[2] = a[4] + a[5] + a[6]. Hence, 3 is the equilibrium index.

About

Equilibrium index of an array is an index such that Sum of elements at lower indexes = Sum of elements at higher indexes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages