Amazon Interview Question
Find the same sum interval in two Binary arrays:
Given two binary arrays A and B of same size N. Find an interval (i, j)(inclusive) such that sum of elements of A and sum of all elements of B in this interval is same.
Given two binary arrays A and B of same size N. Find an interval (i, j)(inclusive) such that sum of elements of A and sum of all elements of B in this interval is same.
Comments
Post a Comment