LIVE Public of India  •  Pan-India Citizen Newsroom  •  Verified Reporting
support@publicofindia.in Membership
BREAKING
Submit your story — verified, policy-led, privacy-first publishing Hindi & English news updated every 15 minutes from across India Members get priority review, profile badge & creator dashboard Public of India is a private platform — not a government website Submit your story — verified, policy-led, privacy-first publishing Hindi & English news updated every 15 minutes from across India Members get priority review, profile badge & creator dashboard Public of India is a private platform — not a government website
Home  /  TECHNOLOGY  /  Maximum Sum UniqueWindow in b[] Based on a[]
TECHNOLOGY Verified

Maximum Sum UniqueWindow in b[] Based on a[]

India 13h ago Source: publicofindia

Given two arrays a and b of equal size of n, find the maximum sum possible of a window in b such that the elements at the same window positions in a are all unique.Examples: Input: a = [0, 1, 2, 3, 0, 1, 4], b = [9, 8, 1, 2, 3, 4, 5]Output: 20Explanation: The maximum sum occurs for

This is a summary. For the full story, refer to the original source. Public of India presents verified citizen-relevant reporting.