I have executued the code for getting an equilibrium point in an array. equilibrium point literally means the element in an array where the sum of elements on it's left side is equal to the sum of elements on it's right side.
I wrote the function equilibrium_point() that will take an array a[], it's length n as an input and return the equilibrium point of that array, if it does not exist, it simply would return zero.
I hope you like these changes.
would love to listen from you what do you think?
I have executued the code for getting an equilibrium point in an array. equilibrium point literally means the element in an array where the sum of elements on it's left side is equal to the sum of elements on it's right side. I wrote the function equilibrium_point() that will take an array a[], it's length n as an input and return the equilibrium point of that array, if it does not exist, it simply would return zero. I hope you like these changes. would love to listen from you what do you think?