Company: Visa fte
Difficulty: medium
Queue: Comparing Values You are given three arrays of integers a , b , and c , and an array of characters signs consisting of \'+\', \'-\', and \'=\' signs. All of these arrays have the same length. Your task is to return a boolean array output of the same length, where output[i] = true if the result of applying signs[i] to a[i] and b[i] is equal to c[i] , and false otherwise. In other words, for each index i , check if a[i] signs[i] b[i] = c[i] . Note: You are not expected to provide the most optimal solution, but a solution with time complexity not worse than O(a.length 2 ) will fit within the execution time limit. Input Format The input consists of: An integer N representing the length of the arrays. An array of integers a of length N . An array of characters signs of length N . An array of integers b of length N . An array of integers c of length N . Output Format Return an array of boolean values indicating the result of the comparisons. Constraints 1 ≤ N ≤ 10 5 -10 9 ≤ a[i], b[i]