Hetarth02 / js-array-helpers

Array Helper functions for your quick use.
MIT License
8 stars 9 forks source link

equilibrium_point__Programme_added #25

Closed Jimmy-Taravia2001 closed 1 year ago

Jimmy-Taravia2001 commented 1 year ago

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?

Hetarth02 commented 1 year ago

I will soon be reviewing all the PRs(Probably by the end of coming Saturday and Sunday). Sorry for the wait.