Finding Balance Point in Sales Data
You are analyzing profit sales data represented as an array of integers nums, where each integer represents the sales amount for a particular day. Your task is to find the "balance point" in the sales data.
The balance point is the day where the total sales revenue before that day is equal to the total sales revenue after that day. If there is no such day, print -1.
Ada AI
I want to discuss a solution
Help me solve this
Give more examples
What's wrong with my code?
How to use 'for loop' in javascript?
javascript (node 13.12.0)