Need help

Revision en1, by Tkm_algo, 2022-10-25 11:22:34

Hi, I can't solve this problem for 3 days now. Please help me solve this problem: Two arrays of the same length (n) are given. Need to find any segment so that the sum of the elements of the first array on this segment is equal to the sum of the elements of the second array on this segment. Need to solve in O(n).

Tags help, help me, segment problem


  Rev. Lang. By When Δ Comment
en1 English Tkm_algo 2022-10-25 11:22:34 324 Initial revision (published)