Algorithm · Capital One · Easy
You receive four arrays that all share the same length: a, b, c, and signs. The arrays a, b, and c hold integers, while every entry signs[i] is one of the two strings "+" or "-". Each index i describes one equation. When signs[i] == "+", the equation to verify is $$a[i] + b[i] = c[i]$$. When signs[i] == "-", the equation to verify is $$a[i] - b[i] = c[i]$$. Produce a Boolean array whose i-th element tells whether the equation at index i is true. Input and Output The input…