Ways to Make a Fair Array
You are given an array nums of even length n. The array is fair if the sum of the odd-indexed values equals the sum of the even-indexed values. You need to find the number of indices i such that after removing nums[i], the array becomes fair.
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)